Skip to content

Commit

Permalink
improve release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingshuke committed May 22, 2024
1 parent c748580 commit 297cabc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/android_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
build:
name: Build APK
runs-on: ubuntu-latest
environment:
name: production

steps:

Expand Down Expand Up @@ -48,17 +50,18 @@ jobs:
- name: Build APK
run: |
cp .env.production .env
echo "storePassword="${{ env.STOREPASSWORD }} > android/.key.properties
echo "keyPassword="${{ env.STOREPASSWORD }} >> android/.key.properties
echo "keyAlias="${{ KEYALIAS }} >> android/.key.properties
echo "storeFile=../key.jks" >> android/.key.properties
flutter build apk --release
- name: Make Github release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.VERSION }}
files: |
build/app/outputs/bundle/release/app-release.aab
build/app/outputs/flutter-apk/app-release.apk
flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.tar.gz
flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.sha256
# Note: the original tag that triggered the workflow is in the form vX.Y.Z
# but the pubspec.yaml is committed in the commit after that one.
# Since we need the tag to point to the correct commit for other workflows
Expand Down

0 comments on commit 297cabc

Please sign in to comment.