diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 901b2ff..56f06f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,10 +69,10 @@ jobs: - name: upload the just-built docs as an artifact - if: ${{ matrix.python-version == '3.10' }} + if: ${{ matrix.python-version == '3.10' }} && github.event-name == 'pull_request' uses: actions/upload-artifact@v4 with: - name: docs-${{ github.ref }} + name: docs-${{ github.head_ref }} path: doc/build/html overwrite: true # v4 requires unique names; this will delete existing before uploading