From 15c1dabd55a664eff00349b34aab364a61a32a5d Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Thu, 9 Apr 2026 08:55:02 -0400 Subject: Include deploy config updates and siteconfig.json --- .builds/deploy.yml | 42 ++++++++++++++++++++---------------------- siteconfig.json | 3 +++ 2 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 siteconfig.json diff --git a/.builds/deploy.yml b/.builds/deploy.yml index 3449788..c786baf 100644 --- a/.builds/deploy.yml +++ b/.builds/deploy.yml @@ -1,26 +1,24 @@ -image: alpine/edge -packages: - - hut - - ruby - - ruby-dev - - build-base - - jekyll +image: debian/stable oauth: pages.sr.ht/PAGES:RW +packages: +- hut +- ruby-full +- ruby-dev environment: + repo: 1mb-club site: 1mb.club -sources: - - https://git.sr.ht/~bt/1mb-club -submitter: - git.sr.ht: - enabled: true - allow-refs: - - refs/heads/deploy tasks: - - build: | - cd 1mb-club - bundle install - bundle exec jekyll build - - deploy: | - cd 1mb-club - tar -czf site.tar.gz -C _site . - hut pages publish -d $site site.tar.gz \ No newline at end of file +- install-bundler: | + cd $repo + sudo gem install bundler +- jekyll-build: | + cd $repo + sudo bundle install + sudo bundle exec jekyll build +- package-site: | + cd $repo/_site + tar -cvzh . > ../site.tar.gz +- deploy: | + hut pages publish -d $site --site-config $repo/siteconfig.json $repo/site.tar.gz +- deploy-www: | + hut pages publish -d www.$site --site-config $repo/siteconfig.json $repo/site.tar.gz \ No newline at end of file diff --git a/siteconfig.json b/siteconfig.json new file mode 100644 index 0000000..cd3c79e --- /dev/null +++ b/siteconfig.json @@ -0,0 +1,3 @@ +{ + "notFound": "404.html" +} \ No newline at end of file -- cgit v1.3.1