File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,10 @@ jobs:
5252 echo "Copying site contents to /tmp/site"
5353 mv ./site /tmp/site/
5454
55- - name : Push changes to gh-pages branch
56- run : |
57- git checkout --orphan gh-pages-tmp
58- git rm --quiet -rf .
59- cp -r /tmp/site/* .
60- git config --global user.name 'GitHub Actions'
61- git config --global user.email 'actions@github.com'
62- echo "cpp.iceberg.apache.org" > CNAME
63- git add --all
64- git commit -m 'Publish C++ docs'
65- git push -f origin gh-pages-tmp:gh-pages || true
55+ - name : Deploy to gh-pages
56+ uses : peaceiris/actions-gh-pages@v4.0.0
57+ if : github.event_name == 'pull_request'
58+ with :
59+ github_token : ${{ secrets.GITHUB_TOKEN }}
60+ publish_dir : ./mkdocs/site
61+ publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments