freehold-cottage/.build.yml

29 lines
650 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:41:32 +00:00
- imagemagick
- imagemagick-dev
- imagemagick-libs
2022-11-12 14:36:45 +00:00
sources:
- https://git.sr.ht/~stfn/freehold-cottage
secrets:
2022-11-15 18:49:34 +00:00
- e674d338-b57a-4099-a057-dacf648ab7b3
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