diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a3c905..5d6f32f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,7 +80,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} run: | cd app-release - rm -rf .git + rm -rf .git .github CODEOWNERS CONTRIBUTORS.md README.md git init git config --global user.email "binaskar@gmail.com" git config --global user.name "nomadics9" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..45976a3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 +