freehold-cottage/.build.yml

27 lines
609 B
YAML
Raw Normal View History

2022-11-15 18:28:13 +00:00
image: alpine/edge
2022-11-12 14:36:45 +00:00
packages:
- ruby-full
- ruby-dev
- nodejs
2022-11-12 15:20:33 +00:00
- rsync
2022-11-15 18:30:06 +00:00
- imagemagick
2022-11-12 14:36:45 +00:00
sources:
- https://git.sr.ht/~stfn/freehold-cottage
secrets:
2022-11-15 18:28:13 +00:00
- 34e9229f-cf33-43b2-a1ba-bbc0d2667f82
2022-11-12 14:36:45 +00:00
tasks:
- setup: |
2022-11-15 18:28:13 +00:00
sudo gem install --no-document bundler
sudo gem install --no-document neocities
2022-11-12 14:36:45 +00:00
- build: |
cd freehold-cottage
2022-11-15 18:28:13 +00:00
bundle config jobs 4
2022-11-12 14:36:45 +00:00
bundle install
2022-11-15 18:28:13 +00:00
JEKYLL_ENV=production bundle exec jekyll build
2022-11-12 14:36:45 +00:00
- deploy: |
cd freehold-cottage
2022-11-15 18:28:13 +00:00
set +x
export NEOCITIES_API_KEY=$(cat ~/.neocities_api_key)
set -x
neocities push --prune _site