Add GitHub Actions APK artifact upload and tag-triggered releases. #1
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| 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 | |
| - name: Build debug APK | |
| run: ./gradlew :BT_Free:assembleDebug | |
| - name: Rename APK | |
| env: | |
| TAG: ${{ github.ref_name }} | |
| run: cp BT_Free/build/outputs/apk/debug/BT_Free-debug.apk "BlowTorch-${TAG}.apk" | |
| - name: Create release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| TAG: ${{ github.ref_name }} | |
| run: gh release create "$TAG" "BlowTorch-${TAG}.apk" --generate-notes |