feat: 更新 GitHub 令牌配置以支持私有仓库的自动更新,优化发布工作流
This commit is contained in:
1 parent
56acfb275b
commit
7534d31b2f
4 files changed
+27
-18
No files matched your search
@@ -81,22 +81,22 @@ jobs:
|
||||
git push origin v${{ env.VERSION }}
|
||||
|
||||
- name: Build for all platforms
|
||||
run: pnpm build:win
|
||||
run: pnpm release
|
||||
env:
|
||||
# 在 macOS 上禁用代码签名
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
# GitHub token 用于发布
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: v${{ env.VERSION }}
|
||||
name: Release v${{ env.VERSION }}
|
||||
body_path: CHANGELOG.md
|
||||
draft: false
|
||||
prerelease: false
|
||||
files: |
|
||||
release/${{ env.VERSION }}/*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Create GitHub Release
|
||||
# uses: softprops/action-gh-release@v2
|
||||
# with:
|
||||
# tag_name: v${{ env.VERSION }}
|
||||
# name: Release v${{ env.VERSION }}
|
||||
# body_path: CHANGELOG.md
|
||||
# draft: false
|
||||
# prerelease: false
|
||||
# files: |
|
||||
# release/${{ env.VERSION }}/*
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user