Skip to content

Commit

Permalink
run mkdocs in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu committed Nov 22, 2024
1 parent d603b12 commit aec8823
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/python-ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@
# under the License.
#

name: "Python Docs"
name: "Python CI Docs"
on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request:


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -40,17 +44,3 @@ jobs:
- name: Build
working-directory: ./mkdocs
run: mkdocs build --strict
- name: Copy
working-directory: ./mkdocs
run: mv ./site /tmp/site
- name: Push changes to gh-pages branch
run: |
git checkout --orphan gh-pages-tmp
git rm --quiet -rf .
cp -r /tmp/site/* .
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
echo "py.iceberg.apache.org" > CNAME
git add --all
git commit -m 'Publish Python docs'
git push -f origin gh-pages-tmp:gh-pages || true

0 comments on commit aec8823

Please sign in to comment.