privacyguides.org/.buildrc
2021-01-15 18:32:13 -06:00

11 lines
294 B
Plaintext
Executable File

export BUILD_DATE=$(TZ=UTC date "+%Y-%m-%d")
export BUILD_TIME=$(TZ=UTC date "+%H:%M:%S %Z")
npm install
bundle install
sed -i "s/^ date:.*$/ date: $BUILD_DATE/" _config.yml
sed -i "s/^ time:.*$/ time: $BUILD_TIME/" _config.yml
JEKYLL_ENV=production bundle exec jekyll build