Use Netlify CLI to deploy instead of relying on GitHub.
This commit is contained in:
parent
f242a9e9d2
commit
beacd32f40
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> My personal website.
|
> My personal website.
|
||||||
|
|
||||||
[![Netlify deploy status](https://api.netlify.com/api/v1/badges/ece73723-80fd-4f64-b168-2f6cecdf8fe9/deploy-status)](https://app.netlify.com/sites/bauke/deploys)
|
[![Netlify deploy status](https://api.netlify.com/api/v1/badges/37bb1f7c-2abb-419f-9a31-a4b72209c1c8/deploy-status)](https://app.netlify.com/sites/bauke/deploys)
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cpy '**' '../public/' --cwd='source' --parents && yarn build:css",
|
"build": "cpy '**' '../public/' --cwd='source' --parents && yarn build:css",
|
||||||
"build:css": "cpy 'node_modules/modern-normalize/modern-normalize.css' 'public/css/'",
|
"build:css": "cpy 'node_modules/modern-normalize/modern-normalize.css' 'public/css/'",
|
||||||
"test": "stylelint 'source/css/*.css'"
|
"test": "stylelint 'source/css/*.css'",
|
||||||
|
"deploy": "rm -rf 'public/' && yarn build && yarn deploy:netlify",
|
||||||
|
"deploy:netlify": "netlify deploy --prod --dir 'public/' -s 37bb1f7c-2abb-419f-9a31-a4b72209c1c8"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"modern-normalize": "^0.7.0"
|
"modern-normalize": "^0.7.0"
|
||||||
|
@ -17,6 +19,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cpy-cli": "^3.1.1",
|
"cpy-cli": "^3.1.1",
|
||||||
"husky": "^4.2.5",
|
"husky": "^4.2.5",
|
||||||
|
"netlify-cli": "^2.58.0",
|
||||||
"stylelint": "^13.6.1",
|
"stylelint": "^13.6.1",
|
||||||
"stylelint-config-xo-space": "^0.14.0"
|
"stylelint-config-xo-space": "^0.14.0"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue