chore(release): bump version to 1.0.4 and add release notes #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 Release APKs | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - 'v*' | |
| - 'beta-*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| - name: Decode Keystore | |
| env: | |
| RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }} | |
| if: ${{ env.RELEASE_KEYSTORE != '' }} | |
| run: | | |
| echo "${{ secrets.RELEASE_KEYSTORE }}" | base64 -d > rdtube-release.jks | |
| echo "keyAlias=${{ secrets.RELEASE_KEY_ALIAS }}" > keystore.properties | |
| echo "keyPassword=${{ secrets.RELEASE_KEY_PASSWORD }}" >> keystore.properties | |
| echo "storeFile=rdtube-release.jks" >> keystore.properties | |
| echo "storePassword=${{ secrets.RELEASE_STORE_PASSWORD }}" >> keystore.properties | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build Release APK | |
| run: ./gradlew assembleRelease | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: RdTube-Release-APK | |
| path: app/build/outputs/apk/**/*.apk | |
| - name: Generate Release Notes | |
| run: python3 docs/scripts/generate_release_notes.py | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/beta-') | |
| with: | |
| body_path: docs/releasenote/release_notes_temp.md | |
| prerelease: ${{ contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') || contains(github.ref_name, 'rc') }} | |
| files: app/build/outputs/apk/release/*.apk |