~stfn/freehold-cottage

ba7e545a30ffcf0561cd3b5040fc5f4a88043fc6 — Stefan Burke 1 year, 6 months ago 837e82a
move to neocities
3 files changed, 13 insertions(+), 12 deletions(-)

M .build.yml
A .ruby-version
M _config.yml
M .build.yml => .build.yml +10 -10
@@ 1,4 1,4 @@
image: debian/stable
image: alpine/edge
packages:
  - ruby-full
  - ruby-dev


@@ 7,20 7,20 @@ packages:
  - libmagickwand-dev
sources:
  - https://git.sr.ht/~stfn/freehold-cottage
environment:
  deploy: sourcehut@stefn.co.uk:freehold-cottage
secrets:
  - 312fd5eb-95ad-4f33-9c83-fd5664236be4
  - 34e9229f-cf33-43b2-a1ba-bbc0d2667f82
tasks:
  - setup: |
      sudo gem install bundler
      sudo gem install --no-document bundler
      sudo gem install --no-document neocities
  - build: |
      cd freehold-cottage
      bundle config jobs 4
      bundle install
      bundle exec jekyll build
      JEKYLL_ENV=production bundle exec jekyll build
  - deploy: |
      cd freehold-cottage
      ssh_opts="ssh -o StrictHostKeyChecking=no"
      rsync --rsh="$ssh_opts" -rP _site/ $deploy


      set +x
      export NEOCITIES_API_KEY=$(cat ~/.neocities_api_key)
      set -x
      neocities push --prune _site

A .ruby-version => .ruby-version +1 -0
@@ 0,0 1,1 @@
3.1.2

M _config.yml => _config.yml +2 -2
@@ 65,11 65,11 @@ defaults:
      path: "_pages"
    values:
      layout: page
      permalink: :slug
      permalink: :slug/
  - scope:
      type: services
    values:
      permalink: services/:title
      permalink: services/:title/
      layout: service
  - scope:
      path: "assets/services"