Skip to content

Commit 1428b31

Browse files
committed
fix workflow
1 parent 99c0170 commit 1428b31

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff 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
5650
uses: peaceiris/[email protected]
5751
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

0 commit comments

Comments
 (0)