From 3ddc421d5f47cf22744e0c8d3a325b76e9288f3f Mon Sep 17 00:00:00 2001 From: h7ml Date: Sat, 26 Oct 2024 18:52:12 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=20release=20workflow?= =?UTF-8?q?=20=E4=BB=A5=E6=94=AF=E6=8C=81=E6=89=8B=E5=8A=A8=E8=A7=A6?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ec396e..da3caf9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,10 @@ on: push: tags: - 'v*' + workflow_dispatch: + +permissions: + contents: write jobs: build: @@ -40,7 +44,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.AUTOMATIC_TOKEN }} with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} @@ -49,7 +53,7 @@ jobs: - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.AUTOMATIC_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./juejin-book-downloader.zip