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

potiuk pushed a commit to branch upload-sphinx-theme-to-site
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit 490ba71f174063765ba6b1ffa3b2dd3623f0f863
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Mar 2 15:12:08 2026 +0100

    Upload sphinx_airflow_theme package to published site
    
    Move the theme preparation and build steps earlier in the CI pipeline
    so the wheel and sdist are copied into dist/sphinx-airflow-theme/
    before pushing to the publish branch. This makes the theme package
    available directly from the published site.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .github/workflows/build.yml | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 25e2685bf3..e8738de6b0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -158,6 +158,17 @@ jobs:
         run: |
           rm -rf node_modules
           sudo rm -rf "$AGENT_TOOLSDIRECTORY/node"
+      - name: ๐Ÿ”ง Copy files from site to theme
+        run: |
+          ./site.sh prepare-theme
+      - name: ๐Ÿ”ง Prepare sphinx_airflow_theme package ๏ธ
+        working-directory: sphinx_airflow_theme
+        run: |
+          uv build
+      - name: ๐Ÿ“ฆ Copy sphinx_airflow_theme package to dist
+        run: |
+          mkdir -p dist/sphinx-airflow-theme
+          cp sphinx_airflow_theme/dist/* dist/sphinx-airflow-theme/
       - name: ๐Ÿ”„Refresh PMC/COMMITTERS profiles
         env:
           PMC_COMMITTERS_FILES: 
landing-pages/site/data/committers.json,landing-pages/site/data/pmc.json
@@ -178,13 +189,6 @@ jobs:
           git commit --no-edit -m "Docs updated via ${GITHUB_REF}:${{ 
github.sha }}" --allow-empty
           echo "Running git push to ${PUBLISH_BRANCH} branch"
           git push origin ${PUBLISH_BRANCH}
-      - name: ๐Ÿ”ง Copy files from site to theme
-        run: |
-          ./site.sh prepare-theme
-      - name: ๐Ÿ”ง Prepare sphinx_airflow_theme package ๏ธ
-        working-directory: sphinx_airflow_theme
-        run: |
-          uv build
       - name: ๐Ÿš€ Upload sphinx_airflow_theme package as artifact
         uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 
 # v4.6.2
         with:

Reply via email to