From ba7e545a30ffcf0561cd3b5040fc5f4a88043fc6 Mon Sep 17 00:00:00 2001 From: Stefan Burke Date: Tue, 15 Nov 2022 18:28:13 +0000 Subject: [PATCH] move to neocities --- .build.yml | 20 ++++++++++---------- .ruby-version | 1 + _config.yml | 4 ++-- 3 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 .ruby-version diff --git a/.build.yml b/.build.yml index fa90ea3..21a2af7 100644 --- a/.build.yml +++ b/.build.yml @@ -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 diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..ef538c2 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.1.2 diff --git a/_config.yml b/_config.yml index d7d7365..6e06b74 100644 --- a/_config.yml +++ b/_config.yml @@ -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"