This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
v1.3.0-T3-TK #69
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: Android CI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew assembleRelease -P version=${{ github.ref_name }} | |
- name: Sign Normal APK | |
id: sign_normal_apk | |
uses: ilharp/sign-android-release@v1 | |
with: | |
releaseDir: app/build/outputs/apk/normal/release/ | |
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }} | |
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }} | |
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | |
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} | |
buildToolsVersion: 31.0.0 | |
- name: Sign Compatible APK | |
id: sign_compatible_apk | |
uses: ilharp/sign-android-release@v1 | |
with: | |
releaseDir: app/build/outputs/apk/compatible/release/ | |
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }} | |
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }} | |
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | |
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} | |
buildToolsVersion: 31.0.0 | |
- name: Upload Normal to Release | |
uses: termux/[email protected] | |
with: | |
asset_name: Sesame-Normal-${{ github.event.release.tag_name }}.apk | |
file: ${{ steps.sign_normal_apk.outputs.signedFile }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
overwrite: true | |
checksums: sha256 | |
checksums_file_name: CHECKSUMS-Sesame-Normal-${{ github.event.release.tag_name }}.%algo% | |
- name: Upload Compatible to Release | |
uses: termux/[email protected] | |
with: | |
asset_name: Sesame-Compatible-${{ github.event.release.tag_name }}.apk | |
file: ${{ steps.sign_compatible_apk.outputs.signedFile }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
overwrite: true | |
checksums: sha256 | |
checksums_file_name: CHECKSUMS-Sesame-Compatible-${{ github.event.release.tag_name }}.%algo% |