Skip to content

Commit

Permalink
Release cd.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Carvin-Yu authored Jan 7, 2024
1 parent fd7d9d6 commit 98147ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- Release
- Release ann Deploy


permissions: write-all # 给所有工作写权限

jobs:
Expand All @@ -29,7 +30,7 @@ jobs:
id: tag_name
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.TOKEN_GITHUB }}
TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }}
- name: 查看变量
run: |
echo ${{ format('version={0}', steps.create_version.outputs.tag_name ) }}
Expand Down Expand Up @@ -137,7 +138,7 @@ jobs:
- name: 发布文件
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.TOKEN_GITHUB }}
allowUpdates: true # 覆盖文件
#draft: true # 草稿 自己可见 版本号会保持一样 默认是自动发布 latest
#prerelease: true # 预发布 别人可以看到 版本号会继续加
Expand Down

0 comments on commit 98147ec

Please sign in to comment.