freehold-cottage/.build.yml
2022-11-15 18:55:28 +00:00

29 lines
650 B
YAML

image: alpine/edge
packages:
- ruby-full
- ruby-dev
- nodejs
- rsync
- imagemagick
- imagemagick-dev
- imagemagick-libs
sources:
- https://git.sr.ht/~stfn/freehold-cottage
secrets:
- 663e253f-76fc-4d51-92ba-2412927a42d8
tasks:
- setup: |
sudo gem install --no-document bundler
sudo gem install --no-document neocities
- build: |
cd freehold-cottage
bundle config jobs 4
bundle install
JEKYLL_ENV=production bundle exec jekyll build
- deploy: |
cd freehold-cottage
set +x
export NEOCITIES_API_KEY=$(cat ~/.neocities_api_key)
set -x
neocities push --prune _site