Skip to content

Commit 068ed16

Browse files
committed
Fix deploy workflow: clean uxstudio dir before tag checkout
Older release tags still have uxstudio files tracked in git. The S3-extracted files conflict with git checkout, so remove them beforehand and re-extract after.
1 parent 3adc89c commit 068ed16

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,16 @@ jobs:
7070
mv docs/.vitepress/dist docs/.vitepress/dist-main
7171
cp docs/.vitepress/config.mts /tmp/config.mts
7272
73+
# Remove S3-extracted uxstudio files before checkout to avoid conflicts
74+
# (older tags still have these files tracked in git)
75+
rm -rf docs/public/uxstudio
76+
7377
# Checkout release tag
7478
git checkout ${{ steps.release.outputs.tag }}
7579
76-
# Restore UX Studio artifacts (git checkout wipes working tree)
80+
# Ensure UX Studio artifacts are present (older tags have them in git,
81+
# future tags won't — always extract from S3 to be safe)
82+
rm -rf docs/public/uxstudio
7783
mkdir -p docs/public/uxstudio
7884
tar -xzf /tmp/uxstudio-4.5.tar.gz -C docs/public/uxstudio
7985
tar -xzf /tmp/uxstudio-4.6.tar.gz -C docs/public/uxstudio

0 commit comments

Comments
 (0)