Skip to content

Commit 52c3499

Browse files
committed
fix workflow
1 parent 561439d commit 52c3499

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Release Docs"
22

33
on:
44
workflow_dispatch:
5-
pull_request:
5+
push:
66
branches:
77
- main
88
paths:
@@ -11,7 +11,7 @@ on:
1111

1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
14-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
14+
cancel-in-progress: false
1515

1616
permissions:
1717
contents: write
@@ -23,7 +23,7 @@ jobs:
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 }}"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
meson==1.3.0
22
ninja==1.13.0
33
mkdocs==1.6.1
4-
mkdocs-material==9.6.22
4+
mkdocs-material==9.6.22

0 commit comments

Comments
 (0)