File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,13 +85,10 @@ jobs:
8585 - name : Generate Javadoc
8686 run : ./mvnw $MAVEN_ARGS compile javadoc:javadoc
8787
88- publish -user-guide :
88+ build -user-guide :
8989
90- name : Publish User Guide
91- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
90+ name : Build User Guide
9291 runs-on : ubuntu-latest
93- permissions :
94- contents : write
9592
9693 steps :
9794 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -102,8 +99,30 @@ jobs:
10299 cache : ' pip'
103100 - name : Install Material for MkDocs
104101 run : pip install mkdocs-material
105- - name : Publish to GitHub Pages
102+ - name : Build User Guide
106103 run : |
107104 git config user.name '${{ github.actor }}'
108105 git config user.email '${{ github.actor }}@users.noreply.github.com'
109- mkdocs gh-deploy --force
106+ mkdocs build --strict
107+ - name : Upload User Guide Artifact
108+ uses : actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
109+ with :
110+ path : target/mkdocs
111+
112+ deploy-user-guide :
113+
114+ name : Deploy User Guide
115+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
116+ runs-on : ubuntu-latest
117+ needs : build-user-guide
118+ permissions :
119+ pages : write
120+ id-token : write
121+ environment :
122+ name : github-pages
123+ url : ${{ steps.deployment.outputs.page_url }}
124+
125+ steps :
126+ - name : Deploy to GitHub Pages
127+ id : deployment
128+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
You can’t perform that action at this time.
0 commit comments