diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e4002371d6..49e6b2cd49 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,6 +27,9 @@ concurrency: jobs: build-and-deploy: runs-on: ubuntu-latest + # Only run this job when on the main Bevy repository. Without this, it would also run on forks + # where developers work on the main branch but have not enabled Github Pages. + if: ${{ github.repository == 'bevyengine/bevy' }} environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}