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 7e51fc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .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 @@ -40,6 +42,7 @@ jobs:
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: output/go_webdav_client* # 将下载的二进制文件发布到 release 中
files: go_webdav_client/* # 将下载的二进制文件发布到 release 中
tag_name: ${{ github.ref_name }} # 使用触发的标签名称
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 的 token 来授权发布

0 comments on commit 7e51fc5

Please sign in to comment.