Skip to content

Bump androidx.navigation:navigation-safe-args-gradle-plugin (#111) #412

Bump androidx.navigation:navigation-safe-args-gradle-plugin (#111)

Bump androidx.navigation:navigation-safe-args-gradle-plugin (#111) #412

Workflow file for this run

name: Android CI
on:
push:
branches: ["main"]
tags: [v*]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
fetch-tags: "true"
submodules: "recursive"
- name: get run id
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "GITHUB_RUN_ID=$(gh run list -w Go -L 1 -R yuhaiin/yuhaiin -s success --json databaseId -q .[0].databaseId)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: yuhaiin.aar
path: yuhaiin
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: yuhaiin/yuhaiin
run-id: ${{ env.GITHUB_RUN_ID }}
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: gradle
- name: Build with Gradle
env:
KEYSTORE_PATH: ${{ github.workspace }}/release.keystore
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEYSTORE: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo ${KEYSTORE} | base64 -d > ${KEYSTORE_PATH}
chmod +x gradlew
./gradlew app:assembleRelease --stacktrace
- name: upload_arm64-v8a
uses: actions/upload-artifact@v4
with:
name: app-arm64-v8a-release
path: app/build/outputs/apk/release/yuhaiin-arm64-v8a-release.apk
- name: upload_x86_64
uses: actions/upload-artifact@v4
with:
name: app-x86_64-release
path: app/build/outputs/apk/release/yuhaiin-x86_64-release.apk
- name: metadata.json
uses: actions/upload-artifact@v4
with:
name: metadata.json
path: app/build/outputs/apk/release/output-metadata.json