Skip to content

Commit 4e22dc1

Browse files
committed
ci: 添加发布版本GitHub Actions工作流
引入外部可重用工作流来自动化发布流程,简化配置并统一权限管理
1 parent 8f5a123 commit 4e22dc1

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish-release:
10+
# 引用外部仓库的可重用工作流
11+
# 权限由外部工作流统一配置,无需在调用方声明
12+
uses: GameFrameX/public-github-actions/.github/workflows/publish-release.yml@main
13+
with:
14+
# 传递tag名称给外部工作流
15+
tag_name: ${{ github.ref_name }}
16+
# 传递仓库名称
17+
repository_name: ${{ github.repository }}
18+
# 组织级别已配置密钥,可以使用 inherit 继承所有密钥
19+
secrets: inherit

0 commit comments

Comments
 (0)