19 lines
308 B
Bash
Executable File
19 lines
308 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# abort on errors
|
|
set -e
|
|
|
|
# build
|
|
npm run docs:build
|
|
|
|
# navigate into the build output directory
|
|
cd .vuepress/dist
|
|
|
|
git init
|
|
git add -A
|
|
git commit -m 'deploy'
|
|
|
|
# if you are deploying to https://<USERNAME>.github.io/<REPO>
|
|
git push -f git@github.com:noties/Markwon.git master:gh-pages
|
|
|
|
cd - |