57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name: Publish AlaskarTV
|
|
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:
|
|
token: "${{ secrets.FORGEJO_TOKEN }}"
|
|
url: https://git.askar.tv
|
|
repo: nomad/alaskartv-app
|
|
tag: "${{ env.VERSION_NAME }}"
|
|
release-dir: ./
|
|
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: List Downloaded Files
|
|
run:
|
|
ls -laR ./release
|
|
echo "release files"
|
|
ls -laR dist/release
|
|
|
|
# - 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
|
|
|