From 1071228a10bf240234013eb2ad46059921af9af5 Mon Sep 17 00:00:00 2001 From: Martin Marwad <44274319+MartinMarwad@users.noreply.github.com> Date: Tue, 20 Aug 2024 01:16:04 +0000 Subject: [PATCH] Add build check for PRs --- .github/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c02f20cf0..552aab323 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main schedule: - cron: '0 0 * * *' @@ -28,6 +31,14 @@ jobs: - name: Build Docusaurus site run: npm run build + deploy: + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: