From 331a2020c16125186d2f9580d8229864faa4d8c8 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/upload.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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/upload.sh b/.github/workflows/upload.sh index ae97054..9f4a0a2 100644 --- a/.github/workflows/upload.sh +++ b/.github/workflows/upload.sh @@ -4,6 +4,8 @@ name=$(cat package.json | jq -r '.name' | cut -d / -f 2) tag_name=$(gh release view --json name --jq .name) upload_file=$RUNNER_TEMP/$name-$tag_name-$variant.zip +echo $(gh release view) + echo name: $name echo tag_name: $tag_name echo upload_file: $upload_file