From 4135f938f403a7bbc0267f05955104ca689d6543 Mon Sep 17 00:00:00 2001 From: Nicolas Mellado Date: Tue, 24 Mar 2026 13:30:50 -0400 Subject: [PATCH] Update deploy_website.yml --- .github/workflows/deploy_website.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_website.yml b/.github/workflows/deploy_website.yml index c7f0da9..055007d 100644 --- a/.github/workflows/deploy_website.yml +++ b/.github/workflows/deploy_website.yml @@ -7,6 +7,8 @@ on: # Triggers the workflow on push or pull request events but only for the "main" branch push: branches: [ "main" ] + pull_request: + branches: [ "main" ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -37,8 +39,10 @@ jobs: run: | cd frontend npm run build-simple - + + # Deploy only when merging the pull request - name: Deploy Github Pages + if: ${{ github.event.pull_request.merged == true }} uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.REPO_ACCESS_TOKEN }}