[Enhance] Support trigger ci manually (#1627)

pull/1636/head
Mashiro 2025-01-15 18:07:34 +08:00 committed by GitHub
parent 8ec837814e
commit e60ab1dde3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
name: deploy
on:
on:
- push
- workflow_dispatch
@ -11,7 +11,8 @@ concurrency:
jobs:
build-n-publish:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
if: |
startsWith(github.event.ref, 'refs/tags') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
@ -29,7 +30,8 @@ jobs:
build-n-publish-lite:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
if: |
startsWith(github.event.ref, 'refs/tags') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10