Skip to content

Commit

Permalink
ci: 修复上传文件出错 (#107)
Browse files Browse the repository at this point in the history
* 设置 TAG_NAME

* 还需要设置 GITHUB_TOKEN
  • Loading branch information
he0119 authored Feb 9, 2023
1 parent 60da6a0 commit 5080fff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set Tag Name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Upload Files
run: gh release upload --clobber ${{ env.TAG_NAME }} plugin_test.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5080fff

Please sign in to comment.