Skip to content

Instantly share code, notes, and snippets.

@sbrin
Created July 11, 2020 07:36
Show Gist options
  • 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 [email protected]:<USERNAME>/<USERNAME>.github.io.git master
# если вы публикуете по адресу https://<USERNAME>.github.io/<REPO>
git push -f [email protected]: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