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: Extract Signed AAB run: unzip ./release/signed-aab.zip -d ./release/signed-aab - name: Download Mapping File uses: actions/download-artifact@v4 with: name: mapping-file path: ./release/mapping - name: Extract Signed AAB run: unzip ./release/mapping-file.zip -d ./release/mapping - name: Download Debug Symbols uses: actions/download-artifact@v4 with: name: debug-symbols path: ./release/symbols - 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.SERVICE_ACCOUNT_JSON }} packageName: "org.askartv.tv" releaseFiles: "./release/signed-aab/*" mappingFile: "./release/mapping/mapping.txt" debugSymbols: "./release/symbols" track: "production" releaseStatus: "completed" whatsNew: ${{ env.WHATS_NEW }}