Webrtc fixes to local player (#126) #94
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Debug APK Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x ./gradlew | |
| - name: Restore debug keystore | |
| run: | | |
| mkdir -p ~/.android | |
| echo "${{ secrets.DEBUG_KEYSTORE_BASE64 }}" | base64 -d > ~/.android/debug.keystore | |
| - name: Build debug APK | |
| run: ./gradlew assembleDebug | |
| - name: Get vars | |
| id: vars | |
| run: | | |
| # Timestamp-based version (YYYY.MM.DD.HHMM format) | |
| echo "timestamp=$(date -u +'%Y.%m.%d.%H%M')" >> $GITHUB_OUTPUT | |
| - name: Create and push Git tag | |
| id: tag | |
| run: | | |
| TAG=debug-${{ steps.vars.outputs.timestamp }} | |
| echo "tag=$TAG" >> "$GITHUB_OUTPUT" | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git tag "$TAG" | |
| git push origin "$TAG" | |
| - name: Create GitHub Release and Upload APK | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.tag.outputs.tag }} | |
| name: "🚀 Debug Build ${{ steps.vars.outputs.timestamp }}" | |
| body: | | |
| ## Debug APK Release | |
| ### What's New | |
| ${{ github.event.head_commit.message }} | |
| ### Important Notes | |
| - This is a **debug build** — not intended for production use | |
| - Contains debug symbols and logging | |
| - Performance may be slower than release builds | |
| ### Installation | |
| Download the APK below and install on your Android device. | |
| files: composeApp/build/outputs/apk/debug/composeApp-debug.apk | |
| draft: false | |
| prerelease: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |