diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 9258fd5b..9f60e946 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -50,15 +50,15 @@ jobs: run: ./gradlew assembleRelease - name: Upload built apk - if: success() + if: success() && github.ref == 'refs/heads/main' uses: actions/upload-artifact@v3 with: name: apk path: ${{ github.workspace }}/app/build/outputs/apk/release/*.apk - name: Upload mappings - if: success() + if: success() && github.ref == 'refs/heads/main' uses: actions/upload-artifact@v3 with: - name: mapping + name: mappings path: ${{ github.workspace }}/app/build/outputs/mapping/release