edu-dis-labs-private/publish.sh

26 lines
575 B
Bash
Raw Permalink Normal View History

2021-08-30 18:54:57 +03:00
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run docs:build
# navigate into the build output directory
cd docs/.vuepress/dist
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
git init
git add -A
git commit -m '[automated]: pushing regenerated documentation'
2021-08-30 18:54:57 +03:00
# if you are deploying to https://<USERNAME>.github.io
# git push -f git@github.com:boldak/<USERNAME>.github.io.git master
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f http://10.1.1.1:3000/hasslesstech/edu-dis-labs-private master:gh-pages
2021-08-30 18:54:57 +03:00
cd -