From 4cfa9720b82699ad016c13a828ad2965679570d6 Mon Sep 17 00:00:00 2001 From: xyz8848 Date: Sat, 28 May 2022 19:54:16 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99931e4..df69d5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,23 +19,25 @@ jobs: java-version: 8 cache: "gradle" - # - name: Set outputs - # id: vars - # run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - name: Set outputs + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - name: Build run: ./gradlew build - # - name: Rename build artifacts - # run: mv build/libs/FDPClient-*.jar build/libs/FDPClient-${{ steps.vars.outputs.sha_short }}.jar + - name: Rename build artifacts + run: | + mv app/build/outputs/apk/BlackDex64/release/app-BlackDex64-release-unsigned.apk app/build/outputs/apk/BlackDex64/release/BlackDex64-${{ steps.vars.outputs.sha_short }}.apk + mv app/build/outputs/apk/BlackDex32/release/app-BlackDex32-release-unsigned.apk app/build/outputs/apk/BlackDex32/release/BlackDex32-${{ steps.vars.outputs.sha_short }}.apk - - name: Test - run: zip -r test.zip * - + # - name: Test + # run: zip -r -S test.zip * - name: Upload build artifacts uses: actions/upload-artifact@v2 with: name: BlackDex - path: test.zip - # path: lib/android/sdk/ndk-bundle/* + path: | + app/build/outputs/apk/BlackDex64/release/BlackDex64-${{ steps.vars.outputs.sha_short }}.apk + app/build/outputs/apk/BlackDex32/release/BlackDex32-${{ steps.vars.outputs.sha_short }}.apk \ No newline at end of file