Fix Android stream fallback build #5
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: Build Android | |
| on: | |
| push: | |
| tags: ["v*"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - uses: android-actions/setup-android@v3 | |
| - uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: "8.10.2" | |
| - name: Build debug APK | |
| run: gradle assembleDebug | |
| - name: Build release artifacts | |
| run: gradle assembleRelease bundleRelease | |
| - name: Collect artifacts | |
| run: | | |
| mkdir -p dist | |
| cp app/build/outputs/apk/debug/app-debug.apk dist/15code-android-debug.apk | |
| cp app/build/outputs/apk/release/app-release-unsigned.apk dist/15code-android-release-unsigned.apk | |
| cp app/build/outputs/bundle/release/app-release.aab dist/15code-android-release.aab | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: 15code-android | |
| path: dist/* | |
| - name: Attach to Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/* | |
| token: ${{ secrets.GITHUB_TOKEN }} | |