File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 Set the alias as the default version
2020 type : boolean
2121 default : true
22+ ref :
23+ description : >-
24+ The ref to checkout and use to create docs
25+ type : string
26+ default : " "
2227 push :
2328 description : >-
2429 Push the documentation to the remote branch
3641 - uses : actions/checkout@v4
3742 with :
3843 fetch-depth : 0 # Required to push to the documentation branch
44+ ref : ${{ inputs.ref }}
3945
4046 - name : Install the latest version of uv
4147 uses : astral-sh/setup-uv@v5
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ permissions:
2020
2121jobs :
2222 docs :
23- if : github.event.pull_request.draft == false
23+ if : contains( github.event.pull_request.labels.*.name, 'documentation')
2424 name : Test deploy documentation
2525 uses : ./.github/workflows/docs.yaml
2626 concurrency :
Original file line number Diff line number Diff line change 1313 delete-test-document :
1414 name : Delete test documentation
1515 runs-on : ubuntu-latest
16+ if : contains( github.event.pull_request.labels.*.name, 'documentation')
1617 concurrency :
1718 group : gh-pages
1819 cancel-in-progress : false
@@ -128,10 +129,12 @@ jobs:
128129 mkdocs :
129130 name : Deploy documentation
130131 needs : [publish, delete-test-document]
132+ if : ${{ always() && !failure() && !cancelled() }}
131133 uses : ./.github/workflows/docs.yaml
132134 secrets : inherit
133135 with :
134136 version : ${{ needs.publish.outputs.tag }}
135137 alias : latest
136138 set-default : true
139+ ref : ${{ needs.publish.outputs.tag }}
137140 push : true
You can’t perform that action at this time.
0 commit comments