Skip to content

Commit

Permalink
ci: Enable build-metadata on build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Nov 24, 2024
1 parent b2e5b65 commit caa93f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,32 @@ jobs:
- os: ubuntu-latest
platform: android
build-type: apk
output: "build/releases/example-v0.0.1-alpha.1-android.apk"
output: "build/releases/example-v1.0.0-alpha.1+nightly.1234f-android.apk"
- os: windows-latest
platform: windows
build-type: windows
output: "build/releases/example-v0.0.1-alpha.1-windows-amd64.zip"
output: "build/releases/example-v1.0.0-alpha.1+nightly.1234f-windows-amd64.zip"
- os: ubuntu-latest
platform: linux
build-type: debian
output: "build/releases/example-v0.0.1-alpha.1-linux-amd64.deb"
output: "build/releases/example-v1.0.0-alpha.1+nightly.1234f-linux-amd64.deb"
- os: ubuntu-latest
platform: linux
build-type: linux
output: "build/releases/example-v0.0.1-alpha.1-linux-amd64.tar.gz"
output: "build/releases/example-v1.0.0-alpha.1+nightly.1234f-linux-amd64.tar.gz"
- os: ubuntu-latest
platform: web
build-type: web
output: "build/releases/example-v0.0.1-alpha.1-web.tar.gz"
output: "build/releases/example-v1.0.0-alpha.1+nightly.1234f-web.tar.gz"
- os: macos-latest
platform: macos
build-type: macos
output: "build/releases/example-v0.0.1-alpha.1-macos-arm64.zip"
# - os: macos-latest
# platform: ios
# build-type: ipa
output: "build/releases/example-v1.0.0-alpha.1+nightly.1234f-macos-arm64.zip"
- os: macos-latest
platform: ios
#build-type: ipa
build-type: ios
output: "build/releases/example-v1.0.0-alpha.1+nightly.1234f-ios.zip"
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand All @@ -70,8 +72,9 @@ jobs:
token: ${{ github.token }}
dry-run: true
app-name: 'example'
app-version: 'v0.0.1-alpha.1'
tag: 'v0.0.1-alpha.1'
build-pre-release: 'alpha.1'
build-metadata: 'nightly.1234f'
tag: 'v1.0.0-alpha.1'
build-type: ${{ matrix.build-type }}
build-args: |-
--dart-define=API_URL="https://example.com"
Expand Down
2 changes: 2 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ runs:
${{ inputs.build-type }} \
${{ inputs.app-name != '' && format('--app-name={0}', inputs.app-name) || '' }} \
${{ inputs.app-version != '' && format('--app-version={0}', inputs.app-version) || '' }} \
${{ inputs.build-metadata != '' && format('--build-metadata={0}', inputs.build-metadata) || '' }} \
${{ inputs.build-pre-release != '' && format('--build-pre-release={0}', inputs.build-pre-release) || '' }} \
${{ inputs.main-path != '' && format('--main-path={0}', inputs.main-path) || '' }} \
${{ steps.prepare.outputs.build-args }} \
${{ ((inputs.build-type == 'apk' || inputs.build-type == 'aab') && inputs.android-keystore-file-base64 != '' && inputs.android-keystore-password != '' && inputs.android-key-alias != '') && format('--keystore-file-base64={0} --keystore-password={1} --key-alias={2} --key-password={3}', inputs.android-keystore-file-base64, inputs.android-keystore-password, inputs.android-key-alias, inputs.android-key-password) || '' }} \
Expand Down

0 comments on commit caa93f8

Please sign in to comment.