From 0162ca040f1b734f66152499f59a779728870915 Mon Sep 17 00:00:00 2001 From: HanYaodong Date: Wed, 24 Apr 2024 23:21:58 +0800 Subject: [PATCH] Fix release CI --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 142ce44c..a30b0023 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: release: types: [published] +permissions: + contents: write + jobs: build: @@ -27,11 +30,7 @@ jobs: - name: Zip Source code run: zip -r ../builds/SourceCodeUseThisOne.zip * - name: Upload Source to release - uses: Shopify/upload-to-release@v2.0.0 - with: - name: SourceCodeUseThisOne.zip - path: ../builds/SourceCodeUseThisOne.zip - repo-token: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload ${{github.event.release.tag_name}} ./builds/SourceCodeUseThisOne.zip - run: npm ci