aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-01 08:56:55 -0400
committerBradley Taunt <bt@btxx.org>2024-07-01 08:56:55 -0400
commit595edf0a2eb4c730bf6eb5f263dff88b5a7c8b78 (patch)
tree57740ccc5ff79a6414eb8dec32abec3333717174
parent6538dd780a82364ab1c8ef6433420a528b5d1aad (diff)
Add placeholder srht build file
-rw-r--r--.build.yml21
-rw-r--r--_config.yml1
2 files changed, 22 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..24b12e2
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,21 @@
+image: debian/stable
+oauth: pages.sr.ht/PAGES:RW
+packages:
+- ruby-full
+- ruby-dev
+environment:
+site: 1mb.club
+sources:
+- https://git.sr.ht/~bt/1mb-club
+tasks:
+- install-bundler: |
+ sudo gem install bundler
+- build: |
+ cd 1mb-club
+ bundle install
+ bundle exec jekyll build
+- package: |
+ cd 1mb-club/_site
+ tar -cvz . > ../../site.tar.gz
+- upload: |
+ acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz \ No newline at end of file
diff --git a/_config.yml b/_config.yml
index 4fa8096..681049c 100644
--- a/_config.yml
+++ b/_config.yml
@@ -19,3 +19,4 @@ exclude:
- website-check.rb
- README.md
- .ruby-version
+ - .build.yml