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 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:12:43 +00:00
|
|
|
tag: "${{ env.VERSION_NAME }}"
|
|
|
|
release-dir: ./
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: List Downloaded Files
|
2025-01-05 23:37:02 +00:00
|
|
|
run: |
|
|
|
|
ls -laR ./release
|
|
|
|
|
|
|
|
ls -laR ./
|
|
|
|
|
|
|
|
ls -laR dist/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
|
|
|
|