From ec547b3c4d5f5362cb0f7b9576c17794c6142d71 Mon Sep 17 00:00:00 2001 From: Shigma Date: Thu, 16 May 2024 01:04:44 +0800 Subject: [PATCH] tweak --- .github/workflows/build.yml | 2 +- .github/workflows/tag.yml | 2 +- .github/workflows/upload.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 427495f..0ae6678 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,4 +78,4 @@ jobs: bash .github/workflows/upload.sh '${{ matrix.target.platform }}-${{ steps.vars.outputs.ARCH }}-node${{ steps.vars.outputs.NODE_VERSION }}' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 8dfb038..98e29f9 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -28,7 +28,7 @@ jobs: - name: Create release if: ${{ steps.version.outputs.tag }} - run: gh release create ${{ steps.version.outputs.tag }} + run: gh release create ${{ steps.version.outputs.tag }} --title ${{ steps.version.outputs.tag }} - name: Build run: gh workflow run build --ref ${{ steps.version.outputs.tag }} diff --git a/.github/workflows/upload.sh b/.github/workflows/upload.sh index ae97054..19e1f68 100644 --- a/.github/workflows/upload.sh +++ b/.github/workflows/upload.sh @@ -1,7 +1,7 @@ variant=$1 name=$(cat package.json | jq -r '.name' | cut -d / -f 2) -tag_name=$(gh release view --json name --jq .name) +tag_name=$(gh release view --json tagName --jq .tagName) upload_file=$RUNNER_TEMP/$name-$tag_name-$variant.zip echo name: $name