Add permissions and token to release workflow
Some checks failed
Release / build (push) Failing after 1m17s
Release / release (push) Has been skipped

This commit is contained in:
乔焰阳
2025-10-30 15:29:49 +08:00
committed by GitHub
parent 778fe67be0
commit 523499ba9f

View File

@@ -9,6 +9,9 @@ on:
- 'v*.*.*' - 'v*.*.*'
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -58,6 +61,7 @@ jobs:
- name: Create GitHub Release - name: Create GitHub Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref_name }} tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }} name: ${{ github.ref_name }}
draft: false draft: false