diff options
| author | Bradley Taunt <git@btxx.org> | 2026-02-11 15:20:26 -0500 |
|---|---|---|
| committer | Bradley Taunt <git@btxx.org> | 2026-02-11 15:20:26 -0500 |
| commit | 54c9fa7292c6e57eea5e335de25d8f0c190312c1 (patch) | |
| tree | bb192a585a5986d9a1f986bff1674a47245f4c0c /.build.yml | |
| parent | aed16d2660007d38759ec9f07a14592e3999ec67 (diff) | |
Setup sourcehut for build, include siteconfig.json
Diffstat (limited to '.build.yml')
| -rw-r--r-- | .build.yml | 24 |
1 files changed, 24 insertions, 0 deletions
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 |
