Release CI #45
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 CI | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Give permission to executable | |
run: chmod +x gradlew | |
- name: Clear build cache | |
uses: gradle/[email protected] | |
with: | |
gradle-version: nightly | |
arguments: clean | |
- name: Build Lite Release APK | |
run: ./gradlew assembleLiteRelease | |
- name: Sign Lite Variant APKs | |
uses: r0adkll/sign-android-release@v1 | |
id: sign_app_lite | |
with: | |
releaseDirectory: app/build/outputs/apk/lite/release | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
alias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
- name: Upload Signed Lite Release APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lite-release-apk | |
path: app/build/outputs/apk/lite/release/*.apk |