From 5080fff1f8ef48f5d4aea1d1cfa8c1e103a9e77c Mon Sep 17 00:00:00 2001 From: uy/sun Date: Thu, 9 Feb 2023 21:56:10 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=87=BA=E9=94=99=20(#107)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 设置 TAG_NAME * 还需要设置 GITHUB_TOKEN --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3da5e5b1..7a04b6e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}