From 996487eb8a9e66fde12c40163cbc39fd2b9bb076 Mon Sep 17 00:00:00 2001 From: Shawn Wang Date: Mon, 25 Dec 2023 21:24:15 +0800 Subject: [PATCH] deploy page only on push --- .github/workflows/gh-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 44d7fae..c46c767 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -24,6 +24,7 @@ jobs: - run: mdbook build - name: Deploy + if: ${{ github.event_name == 'push' }} uses: peaceiris/actions-gh-pages@v3 # if: ${{ github.ref == 'refs/heads/main' }} with: