Skip to content

Commit 5c8dfe5

Browse files
authored
ci: Only publish docs in public repos (#6687)
1 parent ab8c168 commit 5c8dfe5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ jobs:
8181
cmake --build . --target docs --parallel ${BUILD_NPROC}
8282
8383
- name: Create documentation artifact
84-
if: ${{ github.event_name == 'push' }}
84+
if: ${{ github.event.repository.visibility == 'public' && github.event_name == 'push' }}
8585
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
8686
with:
8787
path: ${{ env.BUILD_DIR }}/docs/html
8888

8989
deploy:
90-
if: ${{ github.event_name == 'push' }}
90+
if: ${{ github.event.repository.visibility == 'public' && github.event_name == 'push' }}
9191
needs: build
9292
runs-on: ubuntu-latest
9393
permissions:

0 commit comments

Comments
 (0)