This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-site.git


The following commit(s) were added to refs/heads/main by this push:
     new a1a22e962c7 Use the latest stable Python3 for Archery (#713)
a1a22e962c7 is described below

commit a1a22e962c7a21a2f86ab58808fe06fba02e15f0
Author: Sutou Kouhei <[email protected]>
AuthorDate: Thu Oct 9 10:59:31 2025 +0900

    Use the latest stable Python3 for Archery (#713)
    
    Fix #708
---
 .github/workflows/devdocs.yml | 36 +++++++++++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/devdocs.yml b/.github/workflows/devdocs.yml
index f2a86edb64a..15f1654aa3f 100644
--- a/.github/workflows/devdocs.yml
+++ b/.github/workflows/devdocs.yml
@@ -18,6 +18,12 @@
 name: Upload dev docs
 
 on:
+  push:
+    paths:
+      - ".github/workflows/devdocs.yml"
+  pull_request:
+    paths:
+      - ".github/workflows/devdocs.yml"
   workflow_dispatch:
   schedule:
     - cron:  '0 0 * * *'
@@ -28,7 +34,6 @@ permissions:
 jobs:
   devdocs:
     name: Fetch and upload dev docs
-    if: github.repository == 'apache/arrow-site'
     runs-on: ubuntu-latest
     steps:
 
@@ -48,7 +53,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v6
         with:
-          python-version: '3.9'
+          python-version: 3
           cache: 'pip'
 
       - name: Install archery
@@ -57,19 +62,24 @@ jobs:
 
       - name: Identify latest doc build
         run: |
-          echo "::set-output name=LATEST::$(archery crossbow latest-prefix 
--no-fetch nightly-tests)"
-        id: build
+          echo "LATEST=$(archery crossbow latest-prefix --no-fetch 
nightly-tests)" >> "${GITHUB_ENV}"
 
       - name: Download the crossbow docs artifact
         run: |
-          archery crossbow --queue-path ./crossbow download-artifacts 
--no-fetch --task-filter "*docs" --target-dir downloads ${{ 
steps.build.outputs.LATEST }}
+          archery crossbow \
+            --queue-path ./crossbow \
+            download-artifacts \
+            --no-fetch \
+            --task-filter "*docs" \
+            --target-dir downloads \
+            ${LATEST}
 
       - uses: actions/checkout@v5
         with:
           ref: asf-site
           path: asf-site
 
-      - name: Add docs
+      - name: Prepare docs
         run: |
           cd asf-site
           echo "$(git log -1)"
@@ -77,8 +87,20 @@ jobs:
           git config user.email "github-actions[bot]@users.noreply.github.com"
           rm -rf docs/dev
           mkdir -p docs/dev
-          tar -xvzf ../downloads/${{ steps.build.outputs.LATEST 
}}/test-debian-*-docs/docs.tar.gz -C docs/dev --strip-components=1
+          tar \
+            -xvzf ../downloads/${LATEST}/test-debian-*-docs/docs.tar.gz \
+            -C docs/dev \
+            --strip-components=1
           cp docs/c_glib/index.html docs/dev/c_glib/index.html
+          git status --porcelain
+
+      - name: Publish docs
+        if: >-
+          github.repository == 'apache/arrow-site' &&
+          (github.event_name == 'workflow_dispatch' ||
+           github.event_name == 'schedule')
+        run: |
+          cd asf-site
           if [ "$(git status --porcelain)" != "" ]; then
             # There are changes to the dev docs
             git add docs/dev

Reply via email to