diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..a9207d4 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,5 @@ +yarn build + +mv build/index.html build/200.html + +surge build --domain https://dev-cheats.surge.sh diff --git a/package.json b/package.json index 6f8a1e6..4ec80bd 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "format": "eslint '**/*.ts*' --fix && prettier --write '**/*.ts*'" + "format": "eslint '**/*.ts*' --fix && prettier --write '**/*.ts*'", + "deploy": "./deploy.sh" }, "husky": { "hooks": {