From 3de743e6d2dca91a00f9ba6c70a39fb90b5adfb9 Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Wed, 12 Jul 2023 23:57:52 +1000 Subject: [PATCH] Exclude APKs from metadata artifacts --- .github/workflows/build.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4f91d45..971bccf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,12 +25,6 @@ jobs: env: MATRIX_OS: ${{ matrix.os }} - run: ./gradlew build - - name: Upload app build artifacts - uses: actions/upload-artifact@v3 - with: - name: app-build-outputs-${{ env.BUILD_ID }} - path: app/build/outputs/ - if-no-files-found: error - name: Setup APK artifact names run: | echo "DEBUG_APK=$(jq -er '.elements[].outputFile|sub("(-unsigned)?(\\.apk)?$";"")' 'app/build/outputs/apk/debug/output-metadata.json')" >> "$GITHUB_ENV" @@ -48,3 +42,11 @@ jobs: name: ${{ env.RELEASE_APK }} path: app/build/outputs/apk/release/*.apk if-no-files-found: error + - name: Upload build metadata + uses: actions/upload-artifact@v3 + with: + name: build-metadata-${{ env.BUILD_ID }} + path: | + app/build/outputs/ + !**/*.apk + if-no-files-found: error