[no ci] Restrict publish step to main branch only

This commit is contained in:
Jay Lee
2026-07-03 14:37:22 -04:00
committed by GitHub
parent a9cda11b1e
commit 450b1d2f22

View File

@@ -1098,7 +1098,7 @@ jobs:
tar cJvvf cache.tar.xz --exclude-from=excludes.txt $tar_folders
publish:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'main'
runs-on: ubuntu-24.04
needs: build
permissions: