From 1505e7208ebede53f116cac69e9b0148ffb45640 Mon Sep 17 00:00:00 2001 From: Louis Dispa Date: Mon, 17 Feb 2025 22:37:00 +0100 Subject: [PATCH] Run deploy github action only on the main branch --- .github/workflows/website.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index b4c4fb680..b7d7e061e 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -158,6 +158,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build + if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule' steps: - name: Deploy to GitHub Pages id: deployment