Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 0869bdf

Browse files
committed
更新GitHub工作流,添加权限设置并修改发布配置以生成发布说明
1 parent f4dcd31 commit 0869bdf

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/build_interpreter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
types: [created] # 发布版本时触发
1818
workflow_dispatch: # 允许手动触发
1919

20+
# 添加权限设置
21+
permissions:
22+
contents: write
23+
2024
env:
2125
CARGO_TERM_COLOR: always
2226

@@ -104,5 +108,5 @@ jobs:
104108
with:
105109
files: ${{ matrix.asset_name }}
106110
tag_name: ${{ github.ref_name }}
107-
env:
108-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111+
draft: false
112+
generate_release_notes: true

.github/workflows/build_libraries.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
tags:
1717
- 'v*'
1818

19+
# 添加权限设置
20+
permissions:
21+
contents: write
22+
1923
env:
2024
CARGO_TERM_COLOR: always
2125

@@ -159,8 +163,8 @@ jobs:
159163
with:
160164
files: ${{ matrix.library }}-${{ matrix.os }}.${{ matrix.archive_format }}
161165
tag_name: ${{ github.ref_name }}
162-
env:
163-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166+
draft: false
167+
generate_release_notes: true
164168

165169
# 额外的工作以合并所有库为一个包
166170
package-all:
@@ -237,5 +241,5 @@ jobs:
237241
with:
238242
files: codenothing-all-libraries-${{ matrix.os }}.${{ matrix.archive_format }}
239243
tag_name: ${{ github.ref_name }}
240-
env:
241-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
244+
draft: false
245+
generate_release_notes: true

0 commit comments

Comments
 (0)