walk-up-alarm/deploy.sh

28 lines
535 B
Bash
Raw Permalink Normal View History

2021-12-13 20:17:10 +01:00
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run build
# navigate into the build output directory
2021-12-13 20:22:02 +01:00
mv dist docs
cd docs
2021-12-13 20:17:10 +01:00
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
git init
2021-12-14 10:23:23 +01:00
git branch -m main
2021-12-13 20:17:10 +01:00
git add -A
git commit -m 'deploy'
# if you are deploying to https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git main
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:nzambello/walk-up-alarm.git main:gh-pages
cd -