Skip to content

Commit

Permalink
ci: deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Nov 20, 2023
1 parent 0c5769a commit 8dbe2bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"url": "https://github.com/surmon-china/surmon.me.git"
},
"type": "module",
"main": "dist/bff.js",
"scripts": {
"dev": "NODE_ENV=development tsx watch --ignore vite.config.ts.timestamp-*.mjs ./src/bff.ts",
"build": "node ./sbundler/index.js",
Expand Down
8 changes: 3 additions & 5 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ pnpm install --frozen-lockfile
echo "[deploy] release downloading..."

# Download and unzip the release package
curl -sOL https://github.com/surmon-china/surmon.me/archive/refs/heads/release.zip
unzip -q release.zip
rm -rf dist
mkdir -p dist
cd dist
curl -sOL https://github.com/surmon-china/surmon.me/archive/refs/heads/release.zip && unzip -q release.zip
mv surmon.me-release/* ./
rm -rf surmon.me-release
mv surmon.me-release dist
rm -rf release.zip

# Restart the PM2 application
Expand Down

0 comments on commit 8dbe2bd

Please sign in to comment.