From d1b1dd96ce46e0a3c032b68f63373ebf4f366af6 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Thu, 26 Mar 2026 10:47:12 +0200 Subject: [PATCH] update workflow --- .github/workflows/deploy-blog.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-blog.yml b/.github/workflows/deploy-blog.yml index e98cd15..f7fa937 100644 --- a/.github/workflows/deploy-blog.yml +++ b/.github/workflows/deploy-blog.yml @@ -15,12 +15,29 @@ on: - '.github/workflows/deploy-blog.yml' workflow_dispatch: + discussion: + types: [created, category_changed] + + discussion_comment: + types: [created, edited, deleted] + concurrency: group: deploy-blog cancel-in-progress: true jobs: build-and-deploy: + if: > + github.event_name == 'push' || + github.event_name == 'workflow_dispatch' || + ( + github.event_name == 'discussion' && + github.event.discussion.category.slug == 'comments' + ) || + ( + github.event_name == 'discussion_comment' && + github.event.discussion.category.slug == 'comments' + ) runs-on: ubuntu-latest env: @@ -30,8 +47,10 @@ jobs: DEPLOY_USER: ${{ vars.DEPLOY_USER }} steps: - - name: Checkout + - name: Checkout blog-content branch uses: actions/checkout@v4 + with: + ref: blog-content - name: Setup Node uses: actions/setup-node@v4