This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/main by this push:
new eb875b2b86 Preserve previous sphinx_airflow_theme versions in CI
builds (#1466)
eb875b2b86 is described below
commit eb875b2b8675eff37d191f7004f49cb70107a02c
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Mar 16 23:51:36 2026 +0100
Preserve previous sphinx_airflow_theme versions in CI builds (#1466)
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.
---
.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