Skip to content

Commit 9b61fac

Browse files
committed
Add deploy script
1 parent 80faa07 commit 9b61fac

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
"name": "homepage",
2+
"name": "boostio.github.io",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "BoostIO Homepage",
55
"main": "index.js",
66
"scripts": {
7-
"start": "next",
7+
"start": "hs out",
88
"build": "next build && next export",
99
"dev": "next dev",
10-
"lint": "eslint **/*.js"
10+
"lint": "eslint **/*.js",
11+
"deploy": "sh scripts/deploy.sh"
1112
},
1213
"keywords": [],
1314
"author": "Junyoung Choi <[email protected]> (https://github.com/rokt33r)",

scripts/deploy.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cd out
2+
rm -Rf .git
3+
git init
4+
git add -A
5+
git commit -a -m "Deployed at $(date)"
6+
git remote add origin [email protected]:BoostIO/boostio.github.io.git
7+
git push -f origin master

0 commit comments

Comments
 (0)