diff --git a/.github/workflows/docs_publish.yml b/.github/workflows/docs_publish.yml index 7b3b0d3a3..89b7bf145 100644 --- a/.github/workflows/docs_publish.yml +++ b/.github/workflows/docs_publish.yml @@ -29,7 +29,7 @@ jobs: name: Publish docs to GitHub Pages runs-on: ubuntu-22.04 env: - PREVIEW: ${{ github.event_name == 'pull_request' && github.ref_name != 'main' }} + PREVIEW: ${{ !(github.event_name == 'push' && github.ref_name == 'main') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: ./.github/actions/setup_nix