alaskartv-app/.forgejo/workflows/publish.yml
2025-01-07 19:20:21 +03:00

63 lines
1.9 KiB
YAML

name: Publish to Google Play
on:
workflow_dispatch:
jobs:
publish:
runs-on: docker
container: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- 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
- name: Download Assets
uses: actions/forgejo-release@v2
with:
url: https://git.askar.tv
repo: nomad/alaskartv-app
tag: "v${{ env.VERSION_NAME }}"
release-dir: ./release
direction: download
env:
VERSION_NAME: ${{ env.VERSION_NAME }}
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
- name: Use What's New Message
run: |
mkdir -p ./release/whatsnew
cp whatsnew.txt ./release/whatsnew/whatsnew-en-US
- name: Unzip Symbols
run: |
unzip ./release/debug-symbols.zip -d ./release/symbols
mv ./release/symbols/app-release/app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/* ./release/symbols/
rm -rf ./release/symbols/app-release
- name: List Downloaded Files
run: |
ls -laR ./release
- name: Create service_account.json
run: echo "${{ secrets.SERVICE_ACCOUNT_JSON }}" | base64 -d > 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