From 27f019821b89b429a6de84ff2270b926cd5bb447 Mon Sep 17 00:00:00 2001 From: heyanle <1371735400@qq.com> Date: Sat, 24 Feb 2024 19:25:44 +0800 Subject: [PATCH] [release] 5.1.2 --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71309120..c66051ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,13 @@ jobs: uses: actions/setup-java@v1.4.4 with: java-version: 17 + # Gradle 缓存配置 + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: ${{ runner.os }}-gradle - name: Build run: | chmod +x ./gradlew @@ -59,7 +66,8 @@ jobs: run: | cd private rm -r ./mapping/${{ github.ref_name }} || ls - mv ../app/build/outputs/mapping/release ./mapping/${{ github.ref_name }} + mkdir -p ./mapping/${{ github.ref_name }} + mv ../app/build/outputs/mapping/release/* ./mapping/${{ github.ref_name }} git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git add .