Skip to content

Commit

Permalink
fix yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xtccc committed Oct 31, 2024
1 parent 0ed745d commit e5bdd96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: Go
on:
push:
branches: ["main"]
tags: ["v*"] # 添加这行来监听标签推送
pull_request:
branches: ["main"]


jobs:
build:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -41,5 +43,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: output/go_webdav_client* # 将下载的二进制文件发布到 release 中
tag_name: ${{ github.ref_name }} # 使用触发的标签名称
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 的 token 来授权发布

0 comments on commit e5bdd96

Please sign in to comment.