Skip to content

Commit aec8823

Browse files
committed
run mkdocs in ci
1 parent d603b12 commit aec8823

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/python-ci-docs.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
# under the License.
1818
#
1919

20-
name: "Python Docs"
20+
name: "Python CI Docs"
2121
on:
22-
workflow_dispatch:
22+
push:
23+
branches:
24+
- 'main'
25+
pull_request:
26+
2327

2428
concurrency:
2529
group: ${{ github.workflow }}-${{ github.ref }}
@@ -40,17 +44,3 @@ jobs:
4044
- name: Build
4145
working-directory: ./mkdocs
4246
run: mkdocs build --strict
43-
- name: Copy
44-
working-directory: ./mkdocs
45-
run: mv ./site /tmp/site
46-
- name: Push changes to gh-pages branch
47-
run: |
48-
git checkout --orphan gh-pages-tmp
49-
git rm --quiet -rf .
50-
cp -r /tmp/site/* .
51-
git config --global user.name 'GitHub Actions'
52-
git config --global user.email 'actions@github.com'
53-
echo "py.iceberg.apache.org" > CNAME
54-
git add --all
55-
git commit -m 'Publish Python docs'
56-
git push -f origin gh-pages-tmp:gh-pages || true

0 commit comments

Comments
 (0)