Skip to content

Commit 5ca4487

Browse files
committed
Fix: add permissions for release upload
1 parent f154eda commit 5ca4487

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/build-launcher.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- 'launcher/**'
8-
- '.github/workflows/build-launcher.yml'
7+
- "launcher/**"
8+
- ".github/workflows/build-launcher.yml"
99
pull_request:
1010
branches: [main]
1111
paths:
12-
- 'launcher/**'
12+
- "launcher/**"
1313
workflow_dispatch:
1414
release:
1515
types: [created]
1616

1717
env:
18-
GO_VERSION: '1.24'
18+
GO_VERSION: "1.24"
1919
APP_NAME: mtools-launcher
2020

21+
permissions:
22+
contents: write
23+
2124
jobs:
2225
# Native builds for maximum compatibility
2326
build-native:
@@ -146,5 +149,4 @@ jobs:
146149
uses: softprops/action-gh-release@v1
147150
with:
148151
files: artifacts/*
149-
env:
150-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152+
if: github.ref_type == 'tag'

0 commit comments

Comments
 (0)