File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ await $`rsync -az --include='*/' --include='*.json' --include='*.scm' --include=
2323
2424// Sync root-level registry files
2525for ( 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
2929console . log ( "Extensions CDN sync complete." ) ;
You can’t perform that action at this time.
0 commit comments