alaskartv-app/.github/workflows/publish.yml

56 lines
1.3 KiB
YAML
Raw Normal View History

2024-12-16 00:51:10 +00:00
name: Publish to Google Play
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
2024-12-16 02:16:50 +00:00
permissions:
actions: read
contents: read
2024-12-16 00:51:10 +00:00
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download Signed AAB
2024-12-16 02:13:56 +00:00
uses: dawidd6/action-download-artifact@v2
2024-12-16 00:51:10 +00:00
with:
2024-12-16 02:14:42 +00:00
workflow: main.yml
2024-12-16 02:13:56 +00:00
workflow_conclusion: success
2024-12-16 00:51:10 +00:00
name: signed-aab
path: ./release
2024-12-16 01:56:06 +00:00
- name: Download Debug Symbols
2024-12-16 02:13:56 +00:00
uses: dawidd6/action-download-artifact@v2
2024-12-16 01:56:06 +00:00
with:
2024-12-16 02:14:42 +00:00
workflow: main.yml
2024-12-16 02:13:56 +00:00
workflow_conclusion: success
2024-12-16 01:56:06 +00:00
name: debug-symbols
path: ./release/symbols
2024-12-16 03:48:26 +00:00
- name: Zip Symbols
run: zip -r symbols.zip ./release/symbols
2024-12-16 02:24:31 +00:00
- name: Use What's New Message
run: |
cp whatsnew.txt ./release/whatsnew-en-US.txt
2024-12-16 00:51:10 +00:00
- name: List Downloaded Files
run: ls -l ./release
2024-12-16 02:59:48 +00:00
- name: Create service_account.json
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
2024-12-16 00:51:10 +00:00
- name: Deploy to Google Play
2024-12-16 02:33:07 +00:00
uses: r0adkll/upload-google-play@v1.1.3
2024-12-16 00:51:10 +00:00
with:
2024-12-16 02:59:48 +00:00
serviceAccountJson: service_account.json
2024-12-16 00:51:10 +00:00
packageName: "org.askartv.tv"
2024-12-16 02:24:31 +00:00
releaseFiles: "./release/*.aab"
2024-12-16 03:48:26 +00:00
debugSymbols: "./symbols.zip"
2024-12-16 00:51:10 +00:00
track: "production"
2024-12-16 02:24:31 +00:00
status: "completed"
whatsNewDirectory: ./release
2024-12-16 00:51:10 +00:00