File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,17 @@ jobs:
4646 mkdocs build --clean
4747 echo "MkDocs site built in site/"
4848
49- - name : Copy
50- working-directory : ./mkdocs
51- run : |
52- echo "Copying site contents to /tmp/site"
53- mv ./site /tmp/site/
54-
5549 - name : Deploy to gh-pages
56505751 if : github.event_name == 'pull_request'
58- with :
59- github_token : ${{ secrets.GITHUB_TOKEN }}
60- publish_dir : ./mkdocs/site
61- publish_branch : gh-pages
52+ run : |
53+ git config --global user.name 'GitHub Actions'
54+ git config --global user.email '[email protected] ' 55+
56+ git checkout --orphan gh-pages-tmp
57+ git rm --quiet -rf .
58+ cp -r ./mkdocs/site/* .
59+ echo "cpp.iceberg.apache.org" > CNAME
60+ git add --all
61+ git commit -m "Publish docs from commit ${{ github.sha }}"
62+ git push -f origin gh-pages-tmp:gh-pages || true
You can’t perform that action at this time.
0 commit comments