fix: update readme and version code #9
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 Build | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Decode keystore | |
env: | |
KEYSTORE_B64: ${{ secrets.KEYSTORE_BASE_64}} | |
run: | | |
echo "$KEYSTORE_B64" | base64 --decode > keystore.jks | |
- name: Build with Gradle | |
env: | |
KEYSTORE_FILE: ../keystore.jks | |
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }} | |
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }} | |
run: ./gradlew clean assembleRelease | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release-apk | |
path: app/build/outputs/apk/release/*.apk |