Skip to content

Commit

Permalink
ci: add read and write token to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranroneill committed Oct 30, 2024
1 parent 69f5971 commit 4dd73f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ on:
required: true
GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY:
required: true
READ_AND_WRITE_REPOS_TOKEN:
required: true

jobs:
publish_android_apk:
Expand All @@ -52,6 +54,8 @@ jobs:
run: flutter build apk --release
- name: "📤 Upload Release Asset"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.READ_AND_WRITE_REPOS_TOKEN }}
with:
upload_url: ${{ inputs.release_upload_url }}
asset_path: build/app/outputs/flutter-apk/app-release.apk
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
PLAY_STORE_UPLOAD_KEYSTORE: ${{ secrets.PLAY_STORE_UPLOAD_KEYSTORE }}
PLAY_STORE_UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.PLAY_STORE_UPLOAD_KEYSTORE_PASSWORD }}
GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY }}
READ_AND_WRITE_REPOS_TOKEN: ${{ secrets.READ_AND_WRITE_REPOS_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/publish_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
PLAY_STORE_UPLOAD_KEYSTORE: ${{ secrets.PLAY_STORE_UPLOAD_KEYSTORE }}
PLAY_STORE_UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.PLAY_STORE_UPLOAD_KEYSTORE_PASSWORD }}
GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY }}
READ_AND_WRITE_REPOS_TOKEN: ${{ secrets.READ_AND_WRITE_REPOS_TOKEN }}

0 comments on commit 4dd73f4

Please sign in to comment.