From 424e5b851df44d42cbf26900874480b5de58484a Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Thu, 25 Jul 2024 20:34:41 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20`gh=20release=20upload`=E5=BA=94=E5=BD=93?= =?UTF-8?q?=E4=BD=BF=E7=94=A8`tag=5Fname`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18c2797c..ff835c3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,7 +91,7 @@ jobs: working-directory: ./templates - name: Upload ${{ matrix.template }}.zip to release run: | - gh release upload ${{ github.ref }} \ + gh release upload ${{ github.event.release.tag_name }} \ "./templates/${{ matrix.template }}.zip#模板包·${{ matrix.label }} — ${{ matrix.template }}.zip" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -119,7 +119,7 @@ jobs: name: cls - name: Upload ${{ matrix.cls.name }}.cls to release run: | - gh release upload ${{ github.ref }} \ + gh release upload ${{ github.event.release.tag_name }} \ "${{ matrix.cls.name }}.cls#文档类·${{ matrix.cls.label }} — ${{ matrix.cls.name }}.cls(用于升级替换)" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -177,9 +177,9 @@ jobs: path: handbook - name: Upload handbooks run: | - gh release upload ${{ github.ref }} \ + gh release upload ${{ github.event.release.tag_name }} \ "handbook/undergraduate-handbook.pdf#快速使用指南·本科" - gh release upload ${{ github.ref }} \ + gh release upload ${{ github.event.release.tag_name }} \ "handbook/graduate-handbook.pdf#快速使用指南·硕博" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}