Skip to content

Commit 1ae70be

Browse files
fix(extensions): harden CDN deploy bootstrap and sync paths
1 parent 1192e9b commit 1ae70be

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020
envs: EXTENSIONS_CDN_ROOT
2121
script: |
2222
set -e
23+
if [ ! -d /srv/extensions/.git ]; then
24+
git clone --depth 1 https://github.com/athasdev/extensions.git /srv/extensions
25+
fi
2326
git config --global --add safe.directory /srv/extensions
2427
cd /srv/extensions
2528
git stash push --include-untracked --message "auto-deploy-$(date +%s)" || true
26-
git pull --ff-only
29+
git pull --ff-only origin master
2730
/root/.bun/bin/bun scripts/build-extensions-index.ts
2831
/root/.bun/bin/bun scripts/generate-manifests.ts
2932
if [ -n "${EXTENSIONS_CDN_ROOT:-}" ]; then

scripts/deploy-extensions-cdn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ await $`rsync -az --include='*/' --include='*.json' --include='*.scm' --include=
2323

2424
// Sync root-level registry files
2525
for (const file of ["registry.json", "index.json", "manifests.json"]) {
26-
await $`cp ${join(root, file)} ${targetDir}/../${file}`;
26+
await $`cp ${join(root, file)} ${targetDir}/${file}`;
2727
}
2828

2929
console.log("Extensions CDN sync complete.");

0 commit comments

Comments
 (0)