Skip to content

Commit 4f44ff2

Browse files
committed
ci: fix publish-github-releases to skip on PRs
- Add if condition to only run on push/workflow_dispatch events - Add permissions block with contents: write for release creation - Prevents failures when release.yml runs on PR events Note: This work was completed with AI assistance (Claude Code).
1 parent b6ae115 commit 4f44ff2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ jobs:
151151
needs: [build-package, build-docs]
152152
runs-on: ubuntu-latest
153153

154-
# Publish to GitHub Releases when merged to master
154+
# Publish to GitHub Releases when merged to master (NOT on PRs)
155+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
156+
157+
permissions:
158+
contents: write # Required for creating releases
155159

156160
steps:
157161
- name: Download build artifacts

0 commit comments

Comments
 (0)