File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change 1717# under the License.
1818#
1919
20- name : " Python Docs"
20+ name : " Python CI Docs"
2121on :
22- workflow_dispatch :
22+ push :
23+ branches :
24+ - ' main'
25+ pull_request :
26+
2327
2428concurrency :
2529 group : ${{ github.workflow }}-${{ github.ref }}
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
You can’t perform that action at this time.
0 commit comments