Bump minor version to 1.1.0 in build.gradle.kts #4
Workflow file for this run
This file contains 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 APK | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
name: Generate Signed APK | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Set up Google Services | |
run: | | |
touch app/google-services.json | |
echo "${CONTENT// /}" | base64 --decode > app/google-services.json | |
env: | |
CONTENT: ${{ secrets.GOOGLE_SERVICES }} | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
cache: gradle | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 | |
bundler-cache: true | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Set up Signing Key | |
run: | | |
touch app/key.jks | |
echo "${KEYSTORE// /}" | base64 --decode > app/key.jks | |
touch keystore.properties | |
echo "${KEYSTORE_PROPERTIES// /}" | base64 --decode > keystore.properties | |
env: | |
KEYSTORE: ${{ secrets.KEYSTORE }} | |
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }} | |
- name: Clean | |
run: ./gradlew clean | |
- name: Build Release APK | |
run: ./gradlew assembleRelease | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ${{ github.workspace }}/app/build/outputs/apk/release/*.apk | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body_path: CHANGELOG.md | |
files: app/build/outputs/apk/release/*.apk | |
- name: Upload to Play Store | |
run: bundle exec fastlane android deploy | |
# https://github.com/softprops/action-gh-release/issues/236 | |
permissions: | |
contents: write |