workflow
This commit is contained in:
parent
0dc2148bc5
commit
a12a2e9240
2 changed files with 43 additions and 1 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -80,7 +80,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd app-release
|
cd app-release
|
||||||
rm -rf .git
|
rm -rf .git .github CODEOWNERS CONTRIBUTORS.md README.md
|
||||||
git init
|
git init
|
||||||
git config --global user.email "binaskar@gmail.com"
|
git config --global user.email "binaskar@gmail.com"
|
||||||
git config --global user.name "nomadics9"
|
git config --global user.name "nomadics9"
|
||||||
|
|
42
.github/workflows/publish.yml
vendored
Normal file
42
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
name: Publish to Google Play
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Download Signed AAB
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: signed-aab
|
||||||
|
path: ./release
|
||||||
|
|
||||||
|
- name: List Downloaded Files
|
||||||
|
run: ls -l ./release
|
||||||
|
|
||||||
|
- name: Read What's New Message
|
||||||
|
id: read_whatsnew
|
||||||
|
run: |
|
||||||
|
if [[ -f whatsnew.txt ]]; then
|
||||||
|
WHATS_NEW=$(cat whatsnew.txt)
|
||||||
|
else
|
||||||
|
echo "Error: whatsnew.txt not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "WHATS_NEW=$WHATS_NEW" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Deploy to Google Play
|
||||||
|
uses: r0adkll/upload-google-play@v1
|
||||||
|
with:
|
||||||
|
serviceAccountJson: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}
|
||||||
|
packageName: "org.askartv.tv"
|
||||||
|
releaseFiles: "./release/*"
|
||||||
|
track: "production"
|
||||||
|
releaseStatus: "completed"
|
||||||
|
whatsNewDirectory: "./release/whatsnew/" # Optional for release notes
|
||||||
|
|
Loading…
Reference in a new issue