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 567a350 commit d5eadcc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 35 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,29 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: go_webdav_client-build
path: output/go_webdav_client* # 指定要上传的编译文件路径
path: output/go_webdav_client* # 指定要上传的编译文件路径
release:
runs-on: ubuntu-latest
needs: build

# 仅在推送以 "v" 开头的标签时运行
if: startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: go_webdav_client-build

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }} # 使用触发的标签名称
name: auto release ${{ github.ref_name }}
files: go_webdav_client* # 将下载的二进制文件发布到 release 中
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 的 token 来授权发布
34 changes: 0 additions & 34 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit d5eadcc

Please sign in to comment.