Skip to content

Commit

Permalink
Updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hmziqrs committed Nov 18, 2024
1 parent 4bc22d0 commit 805b56e
Showing 1 changed file with 38 additions and 10 deletions.
48 changes: 38 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ jobs:
android:
name: Android
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Set up Flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -143,16 +147,6 @@ jobs:
token: ${{ secrets.TOKEN }}
allowUpdates: true

- name: Upload app bundle to Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: "app/service-account.json"
packageName: "com.onemdev.flutter_ui_challenges"
releaseFile: app/build/app/outputs/bundle/release/app-release.aab
track: "beta"
inAppUpdatePriority: 3
status: completed

- uses: actions/upload-artifact@v4
with:
name: "app-release.aab"
Expand All @@ -162,6 +156,40 @@ jobs:
name: "app-release.apk"
path: "app/build/app/outputs/apk/release/app-release.apk"

playstore:
name: Playstore Release
needs: android
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
repository: "hmziqrs/keys-n-stuff"
path: "keys"
token: ${{ secrets.TOKEN }}

- uses: actions/download-artifact@v4
with:
name: app-release.aab
path: artifacts
- run: ls -lah
- run: ls -lah keys/
- run: ls -lah keys/fuid
- run: ls -lah artifacts
- run: ls -lah artifacts/app-release.aab
- name: Upload app bundle to Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: "keys/fuid/service-account.json"
packageName: "com.onemdev.flutter_ui_challenges"
releaseFile: "artifacts/*.aab"
track: "beta"
inAppUpdatePriority: 3
status: completed

macos:
name: MacOS
runs-on: macos-latest
Expand Down

0 comments on commit 805b56e

Please sign in to comment.