From 8c10231a7d9ee7ae3384cfc8ecf8730b685eaad6 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 24 Aug 2026 09:22:37 -0400 Subject: Include sourcehut specific build files for deploying to pages --- .builds/deploy.yml | 29 +++++++++++++++++++++++++++++ .builds_disabled/deploy.yml | 31 ------------------------------- 2 files changed, 29 insertions(+), 31 deletions(-) create mode 100644 .builds/deploy.yml delete mode 100644 .builds_disabled/deploy.yml diff --git a/.builds/deploy.yml b/.builds/deploy.yml new file mode 100644 index 0000000..bc978f3 --- /dev/null +++ b/.builds/deploy.yml @@ -0,0 +1,29 @@ +image: alpine/edge +oauth: pages.sr.ht/PAGES:RW +packages: +- hut +- ruby-full +- ruby-dev +secrets: + - 877617a4-009f-43a7-9b4c-25e921d2f61f +environment: + repo: 1mb-club + site: 1mb.club + BUNDLE_PATH: vendor/bundle +submitter: + git.sr.ht: + enabled: true + allow-refs: + - refs/heads/deploy +tasks: +- 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 \ No newline at end of file diff --git a/.builds_disabled/deploy.yml b/.builds_disabled/deploy.yml deleted file mode 100644 index 7f1769f..0000000 --- a/.builds_disabled/deploy.yml +++ /dev/null @@ -1,31 +0,0 @@ -image: debian/stable -oauth: pages.sr.ht/PAGES:RW -packages: -- hut -- ruby-full -- ruby-dev -secrets: - - 232c738f-79b2-4296-bd8e-e9eff01bae60 -environment: - repo: 1mb-club - site: 1mb.club -submitter: - git.sr.ht: - enabled: true - allow-refs: - - refs/heads/deploy -tasks: -- 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 -- cgit v1.3.1