Skip to content

Commit f0d520f

Browse files
committed
Use the latest stable Python3 for Archery
1 parent 374b8b0 commit f0d520f

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

.github/workflows/devdocs.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
name: Upload dev docs
1919

2020
on:
21+
push:
22+
paths:
23+
- ".github/workflows/devdocs.yml"
24+
pull_request:
25+
paths:
26+
- ".github/workflows/devdocs.yml"
2127
workflow_dispatch:
2228
schedule:
2329
- cron: '0 0 * * *'
@@ -28,7 +34,6 @@ permissions:
2834
jobs:
2935
devdocs:
3036
name: Fetch and upload dev docs
31-
if: github.repository == 'apache/arrow-site'
3237
runs-on: ubuntu-latest
3338
steps:
3439

@@ -48,7 +53,7 @@ jobs:
4853
- name: Set up Python
4954
uses: actions/setup-python@v6
5055
with:
51-
python-version: '3.9'
56+
python-version: 3
5257
cache: 'pip'
5358

5459
- name: Install archery
@@ -57,19 +62,24 @@ jobs:
5762
5863
- name: Identify latest doc build
5964
run: |
60-
echo "::set-output name=LATEST::$(archery crossbow latest-prefix --no-fetch nightly-tests)"
61-
id: build
65+
echo "LATEST=$(archery crossbow latest-prefix --no-fetch nightly-tests)" >> "${GITHUB_ENV}"
6266
6367
- name: Download the crossbow docs artifact
6468
run: |
65-
archery crossbow --queue-path ./crossbow download-artifacts --no-fetch --task-filter "*docs" --target-dir downloads ${{ steps.build.outputs.LATEST }}
69+
archery crossbow \
70+
--queue-path ./crossbow \
71+
download-artifacts \
72+
--no-fetch \
73+
--task-filter "*docs" \
74+
--target-dir downloads \
75+
${LATEST}
6676
6777
- uses: actions/checkout@v5
6878
with:
6979
ref: asf-site
7080
path: asf-site
7181

72-
- name: Add docs
82+
- name: Prepare docs
7383
run: |
7484
cd asf-site
7585
echo "$(git log -1)"
@@ -79,6 +89,15 @@ jobs:
7989
mkdir -p docs/dev
8090
tar -xvzf ../downloads/${{ steps.build.outputs.LATEST }}/test-debian-*-docs/docs.tar.gz -C docs/dev --strip-components=1
8191
cp docs/c_glib/index.html docs/dev/c_glib/index.html
92+
git status --porcelain
93+
94+
- name: Publish docs
95+
if: >-
96+
github.repository == 'apache/arrow-site' &&
97+
(github.event_name == 'workflow_dispatch' ||
98+
github.event_name == 'schedule')
99+
run: |
100+
cd asf-site
82101
if [ "$(git status --porcelain)" != "" ]; then
83102
# There are changes to the dev docs
84103
git add docs/dev

0 commit comments

Comments
 (0)