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

54 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
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 00:51:10 +00:00
- name: List Downloaded Files
run: ls -l ./release
- name: Read What's New Message
id: read_whatsnew
run: |
if [[ -f whatsnew.txt ]]; then
WHATS_NEW=$(cat whatsnew.txt)
else
echo "Error: whatsnew.txt not found!"
exit 1
fi
echo "WHATS_NEW=$WHATS_NEW" >> $GITHUB_ENV
- name: Deploy to Google Play
uses: r0adkll/upload-google-play@v1
with:
2024-12-16 01:39:26 +00:00
serviceAccountJson: ${{ secrets.SERVICE_ACCOUNT_JSON }}
2024-12-16 00:51:10 +00:00
packageName: "org.askartv.tv"
2024-12-16 01:56:06 +00:00
releaseFiles: "./release/signed-aab/*"
debugSymbols: "./release/symbols"
2024-12-16 00:51:10 +00:00
track: "production"
releaseStatus: "completed"
2024-12-16 01:45:10 +00:00
whatsNew: ${{ env.WHATS_NEW }}
2024-12-16 00:51:10 +00:00