Skip to content

Commit

Permalink
工作流测试
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsdamxssjxxdd committed Apr 23, 2024
1 parent c692c00 commit b84b549
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,22 @@ jobs:
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
# 获取当前tag的版本
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

# 从该tag打上一个release标签(这里会output一些参数 后面才能使用)
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit b84b549

Please sign in to comment.