~stfn/freehold-cottage

3b4db696b5810c4bbe4d659c9d4de35b315ee3c3 — Stefan 6 months ago 9e88ea7
update build
1 files changed, 8 insertions(+), 13 deletions(-)

M .build.yml
M .build.yml => .build.yml +8 -13
@@ 1,8 1,8 @@
image: alpine/edge
packages:
  - ruby-full
  - ruby-dev
  - nodejs
  - npm
  - rsync
  - imagemagick
  - imagemagick-dev


@@ 12,17 12,12 @@ sources:
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
      cd $repo
      sudo sh ../build-scripts/jekyll-build
  - minify: |
      cd $repo
      sudo sh ../build-scripts/minify-site
  - deploy: |
      cd freehold-cottage
      set +x
      export NEOCITIES_API_KEY=$(cat ~/.neocities_api_key)
      set -x
      neocities push --prune _site
      cd $repo
      sudo sh ../build-scripts/neocities-deploy $repo _site