From 73a224a5f954ed1ff52deb5c8525ccfd08bac033 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Fri, 3 May 2024 21:06:43 +0100 Subject: [PATCH] ci: only deploy github pages on main --- .github/workflows/gh-pages.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 9336e1b..31e863e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,8 +4,6 @@ on: push: branches: - main - - staging - - trying pull_request: workflow_dispatch: @@ -43,6 +41,7 @@ jobs: needs: build runs-on: ubuntu-latest name: deploy + if: github.ref == 'refs/heads/main' steps: - name: Deploy to GitHub Pages id: deployment