File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: "Release Docs"
22
33on :
44 workflow_dispatch :
5- pull_request :
5+ push :
66 branches :
77 - main
88 paths :
1111
1212concurrency :
1313 group : ${{ github.workflow }}-${{ github.ref }}
14- cancel-in-progress : ${{ github.event_name == 'pull_request' }}
14+ cancel-in-progress : false
1515
1616permissions :
1717 contents : write
2323 steps :
2424 - uses : actions/checkout@v5
2525 with :
26- fetch-depth : 0
26+ fetch-depth : 1
2727
2828 - uses : actions/setup-python@v6
2929 with :
@@ -39,17 +39,20 @@ jobs:
3939 run : make build-api-docs
4040
4141 - name : Build docs
42- run : make build-docs
42+ run :
43+ make build-docs
44+ mkdir -p /tmp/site
45+ cp -r ./mkdocs/site/* /tmp/site/
4346
4447 - name : Deploy to gh-pages
45- if : github.event_name == 'pull_request '
48+ if : github.event_name == 'push' && github.ref == 'refs/heads/main '
4649 run : |
4750 git config --global user.name 'GitHub Actions'
4851 git config --global user.email '[email protected] ' 4952
5053 git checkout --orphan gh-pages-tmp
5154 git rm --quiet -rf .
52- cp -r ./mkdocs /site/* .
55+ cp -r /tmp /site/* .
5356 echo "cpp.iceberg.apache.org" > CNAME
5457 git add --all
5558 git commit -m "Publish docs from commit ${{ github.sha }}"
Original file line number Diff line number Diff line change 11meson == 1.3.0
22ninja == 1.13.0
33mkdocs == 1.6.1
4- mkdocs-material == 9.6.22
4+ mkdocs-material == 9.6.22
You can’t perform that action at this time.
0 commit comments