You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2026/03/16 22:50:16 UTC
(airflow-site) 01/01: Preserve previous sphinx_airflow_theme versions in CI builds
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch preserve-previous-theme-versions
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
commit f3877872a67243e8069cc2c9f11a04fd7d48e052
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Mon Mar 16 23:49:56 2026 +0100
Preserve previous sphinx_airflow_theme versions in CI builds
The build-site step runs `rm -rf dist/*` which wipes old theme packages
from the publish branch. Save them to /tmp before build and restore after.
Co-Authored-By: Claude Opus 4.6 (1M context) <no...@anthropic.com>
---
.github/workflows/build.yml | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 34472a8cf8..3ab74962ff 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -111,9 +111,26 @@ jobs:
set-safe-directory: 'true'
# We will push to the publish branch
persist-credentials: true
+ - name: π¦ Save previous sphinx_airflow_theme packages from publish branch
+ run: |
+ if [ -d dist/sphinx-airflow-theme ]; then
+ echo "Saving previous theme packages:"
+ ls -la dist/sphinx-airflow-theme/
+ cp -r dist/sphinx-airflow-theme /tmp/sphinx-airflow-theme-backup
+ else
+ echo "No previous theme packages found"
+ fi
- name: π§ Build site
run: |
/mnt/airflow-site/site.sh build-site
+ - name: π¦ Restore previous sphinx_airflow_theme packages
+ run: |
+ if [ -d /tmp/sphinx-airflow-theme-backup ]; then
+ mkdir -p dist/sphinx-airflow-theme
+ cp -r /tmp/sphinx-airflow-theme-backup/* dist/sphinx-airflow-theme/
+ echo "Restored previous theme packages:"
+ ls -la dist/sphinx-airflow-theme/
+ fi
- name: β nstall AWS CLI v2
if: env.PROD_PUBLISH_REQUIRED != 'false' || env.STAGING_PUBLISH_REQUIRED != 'false'
run: |
@@ -180,12 +197,14 @@ jobs:
working-directory: sphinx_airflow_theme
run: |
uv build
- - name: π¦ Copy sphinx_airflow_theme package to dist
+ - name: π¦ Copy sphinx_airflow_theme package to dist (preserving previous versions)
if: steps.check-theme.outputs.theme_changed == 'true'
run: |
mkdir -p dist/sphinx-airflow-theme
cp sphinx_airflow_theme/dist/* dist/sphinx-airflow-theme/
cp sphinx_airflow_theme/LATEST_VERSION.txt dist/sphinx-airflow-theme/
+ echo "All theme packages (including previous versions):"
+ ls -la 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