2025-01-05 13:26:05 +00:00
|
|
|
name: Publish AlaskarTV
|
2024-12-16 00:51:10 +00:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
2025-01-05 13:26:31 +00:00
|
|
|
runs-on: docker
|
2025-01-04 18:26:51 +00:00
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
2024-12-16 00:51:10 +00:00
|
|
|
|
|
|
|
steps:
|
2025-01-05 13:26:05 +00:00
|
|
|
- name: Get Artifacts from Latest Build
|
|
|
|
id: get-artifacts
|
|
|
|
run: |
|
|
|
|
LATEST_RUN=$(gh run list --workflow main.yml --json conclusion,createdAt,displayTitle,headSha --limit 1 | jq -r '.[0].id')
|
|
|
|
echo "run_id=$LATEST_RUN" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Download Signed AAB
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: signed-aab
|
|
|
|
workflow-run-id: ${{ env.run_id }}
|
|
|
|
path: ./release
|
|
|
|
|
|
|
|
- name: Download Debug Symbols
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: debug-symbols
|
|
|
|
workflow-run-id: ${{ env.run_id }}
|
|
|
|
path: ./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 -laR ./release
|
2025-01-04 13:25:49 +00:00
|
|
|
|
|
|
|
# - name: Create service_account.json
|
|
|
|
# run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
|
|
|
|
#
|
|
|
|
# - name: Deploy to Google Play
|
|
|
|
# uses: https://github.com/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
|
2024-12-16 00:51:10 +00:00
|
|
|
|