diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml index 184ecc592..63dfa1145 100644 --- a/.github/workflows/pr_build.yml +++ b/.github/workflows/pr_build.yml @@ -55,17 +55,20 @@ jobs: run: ./gradlew --no-daemon --stacktrace --build-cache --parallel --configure-on-demand assembleDevRelease assembleDevReldebug - name: Rename APKs + if: ${{ vars.UPLOAD_PR_ARTIFACTS == 'true' }} run: | mv app/build/outputs/apk/dev/release/app-dev-release.apk strato-pr${{ github.event.number }}-release.apk mv app/build/outputs/apk/dev/reldebug/app-dev-reldebug.apk strato-pr${{ github.event.number }}-reldebug.apk - name: Upload Release APK + if: ${{ vars.UPLOAD_PR_ARTIFACTS == 'true' }} uses: actions/upload-artifact@v4 with: name: strato-pr${{ github.event.number }}-release.apk path: strato-pr${{ github.event.number }}-release.apk - name: Upload Debug APK + if: ${{ vars.UPLOAD_PR_ARTIFACTS == 'true' }} uses: actions/upload-artifact@v4 with: name: strato-pr${{ github.event.number }}-reldebug.apk