Skip to content

Commit d1736b8

Browse files
committed
Removing any leftover files from previous releases
1 parent c5a1990 commit d1736b8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/guidechimp-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ jobs:
8989
run: npm run test
9090

9191
# ── Build Core & Plugins ────────────────────────────────────────────────
92+
# ensure the dist directory is completely fresh before building anything
93+
- name: Clean existing dist
94+
run: |
95+
echo "Removing any leftover files from previous releases"
96+
rm -rf dist/* || true
97+
9298
- name: Build GuideChimp Core
9399
run: npm run build --if-present
94100

@@ -101,7 +107,8 @@ jobs:
101107
- name: Sync Plugins to GuideChimp dist
102108
run: |
103109
mkdir -p dist/plugins
104-
rsync -av guidechimp-plugins/dist/ dist/plugins/
110+
# --delete makes sure removed/renamed files in plugins/dist are cleared
111+
rsync -av --delete guidechimp-plugins/dist/ dist/plugins/
105112
ls -la -R dist/
106113
107114
# ── Git: configure for version bump ─────────────────────────────────────

0 commit comments

Comments
 (0)