File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22name : " publish-antora-docs"
33
44on :
5- pull_request :
5+ push :
6+ branches :
7+ - main
68 paths :
7- - " docs/** "
9+ - " version.txt " # Trigger a build when the version changes in order to take the version tag into account
810
911 schedule :
1012 # Every day at 3:00 AM in order to generate documentation for every module that had a new release
1113 - cron : " 0 3 * * *"
1214
13- workflow_call :
14-
15- workflow_dispatch :
15+ pull_request :
16+ paths :
17+ - " docs/** "
1618
19+ workflow_call :
20+
1721jobs :
1822 publish-antora-docs :
1923 runs-on : ubuntu-latest
3741 path : ${{ github.workspace }}/public/docs
3842
3943 - name : " Deploy documentation to GitHub Pages"
40- if : github.ref_name == 'main' && (github.event_name == 'schedule ' || github.event_name == 'workflow_dispatch ' || github.event_name == 'workflow_call')
44+ if : github.ref_name == 'main' && (github.event_name == 'pull ' || github.event_name == 'schedule ' || github.event_name == 'workflow_call')
4145 uses : JamesIves/github-pages-deploy-action@v4.4.1
4246 with :
4347 branch : gh-pages
Original file line number Diff line number Diff line change 1717 release-type : simple
1818 pull-request-title-pattern : " chore: release ${version}"
1919 bump-minor-pre-major : true
20-
21- outputs :
22- release_created : ${{ steps.release-please.outputs.release_created }}
23-
24- publish-documentation :
25- needs :
26- - release-please
27- if : needs.release-please.outputs.release_created
28- uses : " ./.github/workflows/publish-antora-docs.yaml" # Call the Antora documentation workflow
You can’t perform that action at this time.
0 commit comments