aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorBradley Taunt <git@btxx.org>2026-03-09 09:53:28 -0400
committerBradley Taunt <git@btxx.org>2026-03-09 09:53:28 -0400
commitcaf99ae22c885e97f993a3a148e51c609794f098 (patch)
treedd2fa6396bcaa2f38743665e342de4c424fe8a8a /.build.yml
parent47cef12240cf9315fec684564d4fc0389d56c653 (diff)
Rework member website structure
- Use data sites yaml for listing all members, remove site_listings files - Update submission page to reflect updates - Include required gems in Gemfile - Include build file for auto formatting sites.yml
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..6bd2510
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,21 @@
+image: alpine/edge
+packages:
+ - yq
+ - git
+ - openssh
+secrets:
+ - 232c738f-79b2-4296-bd8e-e9eff01bae60
+sources:
+ - https://git.sr.ht/~bt/1mb-club
+tasks:
+ - format-sites: |
+ cd 1mb-club
+ git checkout master
+ git log -1 --pretty=format:'%an' | grep -q "Formatting Bot" && exit 0
+ git config user.email "bot@1mb.club"
+ git config user.name "Formatting Bot"
+ git remote set-url origin git@git.sr.ht:~bt/1mb-club
+ ssh-keyscan git.sr.ht >> ~/.ssh/known_hosts
+ yq --inplace 'sort_by(.domain)' _data/sites.yml
+ sed -i '1!s/- domain:/\n- domain:/g' _data/sites.yml
+ git diff --quiet || git commit -am "Fix formatting" && git push origin master \ No newline at end of file