GenshinProxy/.github/workflows/Android.yml
2022-05-18 17:42:14 +08:00

40 lines
955 B
YAML

name: Android CI
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/caches/build-cache-*
key: gradle-deps-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: gradle-deps
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
bash ./gradlew assembleRelease
- name: Upload Release APK
uses: actions/upload-artifact@v2
with:
name: GenshinProxy_release
path: ./app/build/outputs/apk/release