mirror of
https://github.com/ente-io/ente.git
synced 2025-08-09 07:48:52 +00:00
Add permissions
Ref: - https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs - https://github.com/wangyoucao577/go-release-action/issues/119
This commit is contained in:
parent
0e5a0120b2
commit
d627fdc0fd
12
.github/workflows/cli-release.yml
vendored
12
.github/workflows/cli-release.yml
vendored
@ -10,6 +10,10 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "cli-v*"
|
- "cli-v*"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# Allow the action to create a release
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-linux-amd64:
|
release-linux-amd64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -18,14 +22,6 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create a draft GitHub release
|
|
||||||
uses: ncipollo/release-action@v1
|
|
||||||
with:
|
|
||||||
prerelease: true
|
|
||||||
draft: true
|
|
||||||
allowUpdates: true
|
|
||||||
updateOnlyUnreleased: true
|
|
||||||
|
|
||||||
- name: Build go binaries and upload to the release
|
- name: Build go binaries and upload to the release
|
||||||
uses: wangyoucao577/go-release-action@v1
|
uses: wangyoucao577/go-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user