diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c8d47ac7e..48755dedc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,9 @@ concurrency: jobs: build: + # Don't deploy from forks (e.g. when syncing main from upstream). The + # GitHub Pages deployment isn't available on forks and the run would fail. + if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 @@ -46,6 +49,7 @@ jobs: deploy: needs: build + if: github.event.repository.fork == false runs-on: ubuntu-latest environment: name: github-pages