From e60ab1dde339382285f612c02170cf8243ba39b9 Mon Sep 17 00:00:00 2001 From: Mashiro <57566630+HAOCHENYE@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:07:34 +0800 Subject: [PATCH] [Enhance] Support trigger ci manually (#1627) --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c6bac90d1c..0776016dc3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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