Skip to content

Commit

Permalink
added script for releasing to a host via scp
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Dec 6, 2024
1 parent eb97fb3 commit 9207afd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"build": "jest && webpack --config webpack.config.js --env production",
"release": "cp scripts/release.sh scripts/release.tmp.sh && sh scripts/release.tmp.sh && rm scripts/release.tmp.sh",
"release-latest": "cp scripts/releaseLatest.sh scripts/releaseLatest.tmp.sh && sh scripts/releaseLatest.tmp.sh && rm scripts/releaseLatest.tmp.sh",
"release-beta": "sh scripts/releaseBeta.sh",
"test": "jest",
"stats": "webpack --config webpack.config.js --env.production --env.nolog --profile --json > stats.json && webpack-bundle-analyzer stats.json app/build",
"stats-dev": "webpack --config webpack.config.js --env.nolog --profile --json > stats.json && webpack-bundle-analyzer stats.json app/build",
Expand Down
24 changes: 24 additions & 0 deletions scripts/releaseBeta.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
set -e

# ------------------------------------------------------------------
# AsTeRICS Grid beta-release script
# ------------------------------------------------------------------
# just builds and pushes to a sftp server of our hosting provider

sshUserHost="user@host"

echo "building..."
npm run build

echo "copy data to host..."
ssh $sshUserHost "rm -rf ~/asterics-grid-beta/*"
scp index.html $sshUserHost:~/asterics-grid-beta/
scp unsupported.html $sshUserHost:~/asterics-grid-beta/
scp serviceWorker.js $sshUserHost:~/asterics-grid-beta/
scp -r app $sshUserHost:~/asterics-grid-beta/app

git checkout app/build

echo "release to grid.beta.asterics-foundation.org successful!"


0 comments on commit 9207afd

Please sign in to comment.