Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/_docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
on:
workflow_call:
inputs:
publish:
type: boolean
description: If true, publishes docs to gh-pages


jobs:
Expand Down Expand Up @@ -49,7 +45,7 @@ jobs:
run: python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json

- name: Publish Docs to gh-pages
if: inputs.publish && (github.ref_type == 'tag' || github.ref_name == 'main')
if: github.ref_type == 'tag' || github.ref_name == 'main'
# We pin to the SHA, not the tag, for security reasons.
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:

docs:
uses: ./.github/workflows/_docs.yml
with:
publish: ${{needs.test.result == 'success'}}
permissions:
contents: write

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ jobs:
permissions:
contents: read
packages: write
{% endraw %}{% endif %}{% if sphinx %}{% raw %}
{% endraw %}{% endif %}{% if sphinx %}
docs:
uses: ./.github/workflows/_docs.yml
with:
publish: ${{ needs.test.result == 'success' }}

{% endraw %}{% endif %}
{% endif %}
dist:
uses: ./.github/workflows/_dist.yml
{% if pypi %}
Expand Down
Loading