This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/publish.sh

20 lines
519 B
Bash
Raw Normal View History

2017-07-10 22:12:20 +00:00
#!/usr/bin/env bash
2017-07-12 06:22:21 +00:00
SITE_ENV="prod"
2017-07-10 22:12:20 +00:00
# Remove the existing docs directory, build the site and create the new
# docs directory.
rm -rf ./docs
vendor/bin/sculpin generate --no-interaction --clean --env=${SITE_ENV}
touch output_${SITE_ENV}/.nojekyll
mv output_${SITE_ENV} docs
# Ensure the correct Git variables are used.
git config --local user.name 'Oliver Davies'
git config --local user.email oliver@oliverdavies.uk
# Add, commit and push the changes.
git add --all docs
git commit -m 'Build.'
git push origin HEAD