Skip to content

Instantly share code, notes, and snippets.

@sbrin
Created July 11, 2020 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbrin/e986e503fbb0c256870da92fcc0595fe to your computer and use it in GitHub Desktop.
Save sbrin/e986e503fbb0c256870da92fcc0595fe to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# остановить публикацию при ошибках
set -e
# сборка
npm run build
# переход в каталог сборки
cd dist
# если вы публикуете на пользовательский домен
# echo 'www.example.com' > CNAME
git init
git add -A
git commit -m 'deploy'
# если вы публикуете по адресу https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# если вы публикуете по адресу https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:akozyreva/lillydoo-code-challenge.git master:gh-pages
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment