File tree Expand file tree Collapse file tree
template/{% if git_platform=="github.com" %}.github{% endif %}/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11on :
22 workflow_call :
3- inputs :
4- publish :
5- type : boolean
6- description : If true, publishes docs to gh-pages
73
84
95jobs :
4945 run : python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json
5046
5147 - name : Publish Docs to gh-pages
52- if : inputs.publish && ( github.ref_type == 'tag' || github.ref_name == 'main')
48+ if : github.ref_type == 'tag' || github.ref_name == 'main'
5349 # We pin to the SHA, not the tag, for security reasons.
5450 # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
5551 uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
Original file line number Diff line number Diff line change 2424
2525 docs :
2626 uses : ./.github/workflows/_docs.yml
27- with :
28- publish : ${{needs.test.result == 'success'}}
2927 permissions :
3028 contents : write
3129
Original file line number Diff line number Diff line change @@ -37,13 +37,11 @@ jobs:
3737 permissions:
3838 contents: read
3939 packages: write
40- {% endraw %}{% endif %}{% if sphinx %}{% raw %}
40+ {% endraw %}{% endif %}{% if sphinx %}
4141 docs:
4242 uses: ./.github/workflows/_docs.yml
43- with:
44- publish: ${{ needs.test.result == 'success' }}
4543
46- {% endraw %}{% endif %}
44+ {% endif %}
4745 dist:
4846 uses: ./.github/workflows/_dist.yml
4947 {% if pypi %}
You can’t perform that action at this time.
0 commit comments