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

60 lines
1.7 KiB
YAML
Raw Normal View History

2025-01-06 00:12:57 +00:00
name: Publish to Google Play
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 23:12:43 +00:00
- name: Checkout Repo
uses: actions/checkout@v3
2025-01-05 13:26:05 +00:00
2025-01-05 23:12:43 +00:00
- name: Parse version.txt
id: parse_version
run: |
VERSION_NAME=$(grep '^VERSION_NAME=' version.txt | awk -F 'VERSION_NAME=v' '{print $2}')
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
2025-01-05 13:26:05 +00:00
2025-01-05 23:12:43 +00:00
- name: Download Assets
uses: actions/forgejo-release@v2
2025-01-05 13:26:05 +00:00
with:
2025-01-05 23:27:53 +00:00
url: https://git.askar.tv
repo: nomad/alaskartv-app
2025-01-05 23:47:42 +00:00
tag: "v${{ env.VERSION_NAME }}"
2025-01-05 23:38:15 +00:00
release-dir: ./release
2025-01-05 23:12:43 +00:00
direction: download
env:
VERSION_NAME: ${{ env.VERSION_NAME }}
2025-01-05 23:26:42 +00:00
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
2025-01-05 13:26:05 +00:00
- name: Use What's New Message
run: |
2025-01-05 23:35:22 +00:00
mkdir -p ./release/whatsnew
2025-01-05 13:26:05 +00:00
cp whatsnew.txt ./release/whatsnew/whatsnew-en-US
2025-01-06 20:07:42 +00:00
- name: Unzip Symbols
run: unzip ./release/debug-symbols.zip -d ./release/symbols
2025-01-05 13:26:05 +00:00
- name: List Downloaded Files
2025-01-05 23:37:02 +00:00
run: |
ls -laR ./release
2025-01-04 13:25:49 +00:00
2025-01-06 00:12:57 +00:00
- name: Create service_account.json
2025-01-06 20:03:18 +00:00
run: echo "${{ secrets.SERVICE_ACCOUNT_JSON }}" | base64 -d > service_account.json
2025-01-06 00:12:57 +00:00
- 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"
2025-01-06 19:46:27 +00:00
debugSymbols: "./release/debug-symbols.zip"
2025-01-06 00:12:57 +00:00
track: production
status: completed
whatsNewDirectory: ./release/whatsnew
2024-12-16 00:51:10 +00:00