diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 3a062aa2..2167ab99 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -5,6 +5,9 @@ on: push: branches: ["main"] + pull_request: + branches: ["main"] + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -68,6 +71,8 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build + + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - name: Deploy to GitHub Pages id: deployment