Skip to content

Commit 72c64b7

Browse files
nullccxsynullccxsy
authored andcommitted
fix ci
1 parent 8ed6e6b commit 72c64b7

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff 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 '[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
55+
- name: Deploy to gh-pages
56+
uses: peaceiris/[email protected]
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

0 commit comments

Comments
 (0)