add webp support to nh #366
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 Master CI | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
apk: | |
name: Generate APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 1.11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- name: Get NDK | |
run: sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;21.0.6113669" | |
- name: Setup Android SDK | |
run: | | |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;29.0.3" | |
- name: Write google-services.json | |
uses: DamianReeves/[email protected] | |
with: | |
# The path to the file to write | |
path: app/google-services.json | |
# The contents of the file | |
contents: ${{ secrets.GOOGLE_SERVICES_TEXT }} | |
# The mode of writing to use: `overwrite`, `append`, or `preserve`. | |
write-mode: overwrite # optional, default is preserve | |
- name: Build Release APK | |
run: bash ./gradlew assembleStandardRelease --stacktrace | |
- name: Sign Android release | |
uses: r0adkll/sign-android-release@v1 | |
with: | |
# The directory to find your release to sign | |
releaseDirectory: app/build/outputs/apk/standard/release | |
# The key used to sign your release in base64 encoded format | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
# The key alias | |
alias: ${{ secrets.ALIAS }} | |
# The password to the keystore | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
# The password for the key | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TachiyomiAZ-${{ github.sha }}.apk | |
path: ${{ env.SIGNED_RELEASE_FILE }} |