From 54c9fa7292c6e57eea5e335de25d8f0c190312c1 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Wed, 11 Feb 2026 15:20:26 -0500 Subject: Setup sourcehut for build, include siteconfig.json --- .build.yml | 24 ++++++++++++++++++++++++ .ruby-version | 2 +- siteconfig.json | 3 +++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .build.yml create mode 100644 siteconfig.json diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..7dc8cfe --- /dev/null +++ b/.build.yml @@ -0,0 +1,24 @@ +image: debian/stable +oauth: pages.sr.ht/PAGES:RW +packages: +- hut +- ruby-full +- ruby-dev +environment: + repo: 1mb-club + site: 1mb.club +tasks: +- install-bundler: | + cd $repo + sudo gem install bundler +- jekyll-build: | + cd $repo + bundle install + 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 diff --git a/.ruby-version b/.ruby-version index 15a2799..ef538c2 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.0 +3.1.2 diff --git a/siteconfig.json b/siteconfig.json new file mode 100644 index 0000000..b5412d6 --- /dev/null +++ b/siteconfig.json @@ -0,0 +1,3 @@ +{ + "notFound": "404.html" +} \ No newline at end of file -- cgit v1.3.1