From b64404130efcdffb01435be09c8981b950afb1d4 Mon Sep 17 00:00:00 2001 From: gzu-liyujiang <1032694760@qq.com> Date: Sun, 1 Dec 2024 12:42:07 +0800 Subject: [PATCH] This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. --- .github/workflows/release-apk.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-apk.yml b/.github/workflows/release-apk.yml index 9098d0c..0a7734e 100644 --- a/.github/workflows/release-apk.yml +++ b/.github/workflows/release-apk.yml @@ -13,21 +13,25 @@ on: jobs: build: runs-on: ubuntu-latest + steps: - name: Checkout source code uses: actions/checkout@v2 + - name: Set up JDK 17 uses: actions/setup-java@v1 with: java-version: 17 + - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Build with Gradle run: ./gradlew clean assembleRelease --info --warning-mode all + - name: Store android package - uses: actions/upload-artifact@v2 + uses: ncipollo/release-action@v1.12.0 with: - name: artifact - path: app/build/outputs/apk/pub/release/*.apk - if-no-files-found: warn - retention-days: 7 + artifacts: "app/build/outputs/apk/pub/release/*.apk" + token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true