From 64f7e73adbe0702764076022ee31e536adfb2621 Mon Sep 17 00:00:00 2001 From: Hien To Date: Thu, 26 Sep 2024 15:17:21 +0700 Subject: [PATCH] ci: enable workflow dispatch for build docs pipeline --- .github/workflows/jan-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jan-docs.yml b/.github/workflows/jan-docs.yml index 108b9ebd..556e49fd 100644 --- a/.github/workflows/jan-docs.yml +++ b/.github/workflows/jan-docs.yml @@ -7,6 +7,7 @@ on: pull_request: # Review gh actions docs if you want to further define triggers, paths, etc # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + workflow_dispatch: jobs: deploy: @@ -66,7 +67,7 @@ jobs: Preview URL: ${{ steps.deployCloudflarePages.outputs.url }} - name: Publish to Cloudflare Pages Production - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.event.pull_request.head.repo.full_name != github.repository + if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') uses: cloudflare/pages-action@v1 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}