1515jobs :
1616 build_site :
1717 name : " Build site with Antora"
18- runs-on : [ubuntu-24 .04]
18+ runs-on : [ubuntu-22 .04]
1919 steps :
2020 - name : Checkout
2121 uses : actions/checkout@v4
3535 pull-requests : write
3636 repository-projects : write
3737 id-token : write
38- runs-on : [ubuntu-24 .04]
38+ runs-on : [ubuntu-22 .04]
3939 needs : [build_site]
4040 name : " Deploy GitHub Pages"
4141 if : github.event_name != 'pull_request'
@@ -48,12 +48,13 @@ jobs:
4848 name : site
4949 path : " ${{ github.workspace }}/${{ env.SITE_DIR }}"
5050 - name : Deploy to GitHub Pages
51- uses : JamesIves/github-pages-deploy-action @v4
51+ uses : peaceiris/actions-gh-pages @v4
5252 with :
53- token : ${{ secrets.GITHUB_TOKEN }}
54- folder : " ${{ env.SITE_DIR }}"
55- commit-message : " [CI] Publish Documentation for ${{ github.sha }}"
56- clean : false
53+ github_token : ${{ secrets.GITHUB_TOKEN }}
54+ publish_dir : " ${{ env.SITE_DIR }}"
55+ commit_message : " [CI] Publish Documentation for ${{ github.sha }}"
56+ user_name : ' github-actions[bot]'
57+ user_email : ' github-actions[bot]@users.noreply.github.com'
5758
5859 # Based on : https://daiyi.co/blog/pr-previews-for-github-pages/
5960 deploy_preview :
6465 id-token : write
6566 env :
6667 PR_PATH : pull-${{ github.event.number }}
67- runs-on : [ ubuntu-24 .04 ]
68+ runs-on : [ ubuntu-22 .04 ]
6869 needs : [ build_site ]
6970 name : " Deploy preview for PR"
7071 if : github.event_name == 'pull_request'
@@ -90,13 +91,14 @@ jobs:
9091 path : " ${{ github.workspace }}/${{ env.SITE_DIR }}"
9192
9293 - name : Deploy PR preview
93- uses : JamesIves/github-pages-deploy-action @v4
94+ uses : peaceiris/actions-gh-pages @v4
9495 with :
95- token : ${{ secrets.GITHUB_TOKEN }}
96- folder : " ${{ env.SITE_DIR }}"
97- target-folder : " ${{ env.PR_PATH }}"
98- commit-message : " [CI] Publish Preview for PR #${{ github.event.number }}"
99- clean : false
96+ github_token : ${{ secrets.GITHUB_TOKEN }}
97+ publish_dir : " ${{ env.SITE_DIR }}"
98+ destination_dir : " ${{ env.PR_PATH }}"
99+ commit_message : " [CI] Publish Preview for PR #${{ github.event.number }}"
100+ user_name : ' github-actions[bot]'
101+ user_email : ' github-actions[bot]@users.noreply.github.com'
100102
101103 - name : Update comment
102104 uses : hasura/comment-progress@v2.3.0
0 commit comments