aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-15 08:32:53 -0400
committerBradley Taunt <bt@btxx.org>2024-07-15 08:32:53 -0400
commit25a40a3ee5a6f4e6e30d0befd4e9789f2fe4e4bd (patch)
tree5cd334aca4faa85283edaf1c921d7a98490c1b42
parent7d3bff16794c58884aa7d9bee75af46d5bb0a6b2 (diff)
Test build changes with single task
-rw-r--r--.build.yml31
1 files changed, 14 insertions, 17 deletions
diff --git a/.build.yml b/.build.yml
index 18aa7e5..62b4e47 100644
--- a/.build.yml
+++ b/.build.yml
@@ -6,24 +6,21 @@ packages:
- ruby-full
- ruby-dev
environment:
+ - DEPLOY_ENV=production
site: 1kb.club
sources:
- https://git.sr.ht/~bt/1kb-club
tasks:
-- install-bundler: |
- sudo gem install bundler
-- build: |
- - if [ "$SRHT_BRANCH" = "deploy" ]; then
- cd 1kb-club
- sudo bundle install
- sudo bundle exec jekyll build
- fi
-- package: |
- - if [ "$SRHT_BRANCH" = "deploy" ]; then
- cd 1kb-club/_site
- tar -cvz . > ../../site.tar.gz
- fi
-- upload: |
- - if [ "$SRHT_BRANCH" = "deploy" ]; then
- hut pages publish -d 1kb.club site.tar.gz
- fi \ No newline at end of file
+- name: build-1kb
+ steps:
+ - if [ "$SRHT_BRANCH" = "deploy" ]; then
+ 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