Skip to content

Commit df8b81c

Browse files
copyleftdevclaude
andcommitted
Fix CI: add contents:write permission for release uploads
Trigger on tag push instead of release event for simpler flow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ce698f7 commit df8b81c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: CI
33
on:
44
push:
55
branches: [main]
6+
tags: ['v*']
67
pull_request:
78
branches: [main]
8-
release:
9-
types: [published]
9+
10+
permissions:
11+
contents: write
1012

1113
env:
1214
CARGO_TERM_COLOR: always
@@ -183,7 +185,7 @@ jobs:
183185
path: "*.deb"
184186

185187
- name: Upload to release
186-
if: github.event_name == 'release'
188+
if: startsWith(github.ref, 'refs/tags/v')
187189
uses: softprops/action-gh-release@v2
188190
with:
189191
files: "*.deb"

0 commit comments

Comments
 (0)