alaskartv-app/.github/workflows/publish.yml
2024-12-16 15:43:27 +03:00

56 lines
1.4 KiB
YAML

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