aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-15 09:02:00 -0400
committerBradley Taunt <bt@btxx.org>2024-07-15 09:02:00 -0400
commit4a54c8a16a77bb2072f8d7d9b793e92525a29dbf (patch)
treeba9d109f4eaadf2ede91e321899b67a8dd19dc9d
parentbcdf597bd49a36ffbad782e2e3a9dbe750c8a154 (diff)
Default back to original build config since srht builds are not very robust
-rw-r--r--.build.yml30
1 files changed, 16 insertions, 14 deletions
diff --git a/.build.yml b/.build.yml
index 60d57a4..9fd55cc 100644
--- a/.build.yml
+++ b/.build.yml
@@ -1,21 +1,23 @@
image: alpine/latest
oauth: pages.sr.ht/PAGES:RW
+packages:
+- go
+- hut
+- ruby-full
+- ruby-dev
environment:
site: 1kb.club
sources:
- https://git.sr.ht/~bt/1kb-club
tasks:
-- build : |
- if [ "$SRHT_BRANCH" = "deploy" ]; then
- echo "On deploy branch, proceeding with package installation and build...";
- apk add --no-cache go hut ruby-full ruby-dev
- sudo gem install bundler
- cd 1kb-club
- sudo bundle install
- sudo bundle exec jekyll build
- cd 1kb-club/_site
- tar -cvz . > ../../site.tar.gz
- hut pages publish -d 1kb.club site.tar.gz
- else
- echo "Not on deploy branch, skipping build and upload.";
- fi \ No newline at end of file
+- install-bundler: |
+ sudo gem install bundler
+- build: |
+ cd 1kb-club
+ sudo bundle install
+ sudo bundle exec jekyll build
+- package: |
+ cd 1kb-club/_site
+ tar -cvz . > ../../site.tar.gz
+- upload: |
+ hut pages publish -d 1kb.club site.tar.gz \ No newline at end of file