Skip to content

Commit d4cc872

Browse files
jappeace-slothclaude
andcommitted
Only build and upload artifacts on master branch
Skip APK build and artifact uploads on PRs to save CI time. Artifacts are only produced on pushes to master. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6e42865 commit d4cc872

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ jobs:
5555
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
5656
- run: nix-build nix/android.nix
5757
- run: nix-build nix/apk.nix -o result-apk
58+
if: github.ref == 'refs/heads/master'
5859
- name: Upload Android APK
60+
if: github.ref == 'refs/heads/master'
5961
uses: actions/upload-artifact@v4
6062
with:
6163
name: haskell-mobile-android
@@ -86,6 +88,7 @@ jobs:
8688
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
8789
- run: nix-build nix/ios.nix
8890
- name: Upload iOS library
91+
if: github.ref == 'refs/heads/master'
8992
uses: actions/upload-artifact@v4
9093
with:
9194
name: haskell-mobile-ios

0 commit comments

Comments
 (0)