Skip to content

fix: 修复设置界面因关联设置更新导致的崩溃 #181

fix: 修复设置界面因关联设置更新导致的崩溃

fix: 修复设置界面因关联设置更新导致的崩溃 #181

Workflow file for this run

name: Android Debug CI
on:
push:
branches:
- dev
paths-ignore:
# 构建无关文件不触发
- '**.md'
- '**.json'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true
- name: Delete Debug
uses: dev-drprasad/delete-tag-and-release@v0.2.1
with:
delete_release: true
tag_name: Debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Set Cache
uses: actions/cache@v3
with:
path: |
build
app/build
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle*', 'gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Upload Debug Artifact
uses: actions/upload-artifact@v3
with:
name: "auto_built_snapshot_${{ github.sha }}"
path: app/build/outputs/apk/Github/debug/app_debug.apk
retention-days: 10
- name: Upload Pre-Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
generate_release_notes: true
name: 'Debug'
tag_name: 'Debug'
target_commitish: ${{ github.sha }}
files: 'app/build/outputs/apk/Github/debug/*.apk'