aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.builds/deploy.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.builds/deploy.yml b/.builds/deploy.yml
new file mode 100644
index 0000000..3449788
--- /dev/null
+++ b/.builds/deploy.yml
@@ -0,0 +1,26 @@
+image: alpine/edge
+packages:
+ - hut
+ - ruby
+ - ruby-dev
+ - build-base
+ - jekyll
+oauth: pages.sr.ht/PAGES:RW
+environment:
+ site: 1mb.club
+sources:
+ - https://git.sr.ht/~bt/1mb-club
+submitter:
+ git.sr.ht:
+ enabled: true
+ allow-refs:
+ - refs/heads/deploy
+tasks:
+ - build: |
+ cd 1mb-club
+ bundle install
+ bundle exec jekyll build
+ - deploy: |
+ cd 1mb-club
+ tar -czf site.tar.gz -C _site .
+ hut pages publish -d $site site.tar.gz \ No newline at end of file