We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719fdd0 commit bfc36dcCopy full SHA for bfc36dc
.github/workflows/docs.yml
@@ -52,14 +52,10 @@ jobs:
52
echo "Copying site contents to /tmp/site"
53
mv ./site /tmp/site/
54
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 '[email protected]'
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
+ - name: Deploy to gh-pages
+ uses: peaceiris/[email protected]
+ if: github.event_name == 'pull_request'
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./mkdocs/site
+ publish_branch: gh-pages
0 commit comments