From 3402e72427854fddcff041645dfbf39afa03abd6 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 5 May 2021 11:27:12 +0800 Subject: [PATCH] Run guide workflow on pull request --- .github/workflows/guide.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/guide.yml b/.github/workflows/guide.yml index 95ec32f5..f2ee35a4 100644 --- a/.github/workflows/guide.yml +++ b/.github/workflows/guide.yml @@ -4,6 +4,7 @@ on: push: branches: - main + pull_request: release: types: [published] @@ -48,6 +49,7 @@ jobs: echo "" > gh-pages-build/doc/index.html - name: Deploy + if: github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v3.7.0-8 with: github_token: ${{ secrets.GITHUB_TOKEN }}