Skip to content

Commit

Permalink
Exclude APKs from metadata artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Jul 12, 2023
1 parent 7e9b462 commit 3de743e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 3de743e

Please sign in to comment.