Skip to content

Commit

Permalink
Update ref to release name (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasanker authored Oct 14, 2023
1 parent 5e44b2d commit a52acdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ on:
prodRelease:
type: boolean
required: false
default: false
tagName:
type: string
required: false

env:
FLUTTER_VERSION: 3.13.1
JAVA_VERSION: 11.x
DEV_RELEASE: ${{ inputs.prodRelease != 'true' || 'false' }}
PROD_RELEASE: ${{ inputs.prodRelease || 'false' }}
TAG_NAME: ${{ inputs.tagName || 'dev' }}

Expand Down Expand Up @@ -61,7 +59,7 @@ jobs:
uses: actions/checkout@v2

- name: Install Apple certificate and provisioning profile (dev)
if: env.DEV_RELEASE == 'true'
if: env.PROD_RELEASE != 'true'
run: .github/scripts/setup-certs.sh
env:
APPLE_IOS_SIGNING_CERT: ${{ secrets.APPLE_IOS_SIGNING_CERTIFICATE_DEVELOPMENT }}
Expand Down Expand Up @@ -97,7 +95,7 @@ jobs:
run: dart run build_runner build

- name: Create Development build
if: env.DEV_RELEASE == 'true'
if: env.PROD_RELEASE != 'true'
run: .github/scripts/build-dev.sh ${{ needs.version.outputs.version }} ${{ needs.version.outputs.build_version }}

- name: Create Production build
Expand Down Expand Up @@ -144,7 +142,7 @@ jobs:
run: dart run build_runner build

- name: Build appbundle (dev)
if: env.DEV_RELEASE == 'true'
if: env.PROD_RELEASE != 'true'
run: flutter build apk --flavor development --release --build-name ${{ needs.version.outputs.version }} --build-number ${{ needs.version.outputs.build_version }} --target lib/main_development.dart

- name: Build appbundle (prod)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/[email protected]
with:
name: ios

- name: Firebase App Distribution
uses: wzieba/[email protected]
with:
Expand All @@ -42,6 +43,7 @@ jobs:
uses: actions/[email protected]
with:
name: android

- name: Firebase App Distribution
uses: wzieba/[email protected]
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
with:
storeArtifacts: true
prodRelease: true
tagName: ${{ github.event.inputs.tagName }}
tagName: ${{ github.event.release.tag_name }}
secrets: inherit

prod_release_ios:
Expand All @@ -23,6 +23,7 @@ jobs:
uses: actions/[email protected]
with:
name: ios

- name: Upload app to App Store Connect
env:
APP_STORE_CONNECT_USERNAME: ${{ secrets.APP_STORE_CONNECT_USERNAME }}
Expand All @@ -40,6 +41,7 @@ jobs:
uses: actions/[email protected]
with:
name: android

- name: Sign Android appbundle
uses: r0adkll/sign-android-release@v1
id: sign_app
Expand All @@ -49,6 +51,7 @@ jobs:
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}

- name: Upload to Google Play Store
uses: r0adkll/upload-google-play@v1
with:
Expand Down

0 comments on commit a52acdb

Please sign in to comment.