Skip to content

Commit

Permalink
ci: 更新 release workflow 以支持手动触发
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Oct 26, 2024
1 parent e21b0e2 commit 3ddc421
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:

permissions:
contents: write

jobs:
build:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 3ddc421

Please sign in to comment.