Skip to content

fix actions licenses #159

fix actions licenses

fix actions licenses #159

Workflow file for this run

name: Android CI
on:
push:
branches: [ "star" ]
pull_request:
branches: [ "star" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# - name: Set up environment variables
# run: |
# echo "ANDROID_HOME=$ANDROID_HOME" >> $GITHUB_ENV
# echo "$ANDROID_HOME/tools/bin" >> $GITHUB_PATH
# echo "$ANDROID_HOME/cmdline-tools/latest/bin" >> $GITHUB_PATH
- name: Accept licenses
run: yes | sdkmanager --licenses
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Sign APK
if: success()
id: sign_app
uses: r0adkll/sign-android-release@v1.0.4
with:
releaseDirectory: ./app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNINGKEYBASE64 }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEYSTOREPASSWORD }}
keyPassword: ${{ secrets.KEYPASSWORD }}
- uses: actions/upload-artifact@v4
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}