aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.build.yml b/.build.yml
index 9fd55cc..18aa7e5 100644
--- a/.build.yml
+++ b/.build.yml
@@ -13,11 +13,17 @@ tasks:
- install-bundler: |
sudo gem install bundler
- build: |
- cd 1kb-club
- sudo bundle install
- sudo bundle exec jekyll build
+ - if [ "$SRHT_BRANCH" = "deploy" ]; then
+ cd 1kb-club
+ sudo bundle install
+ sudo bundle exec jekyll build
+ fi
- package: |
- cd 1kb-club/_site
- tar -cvz . > ../../site.tar.gz
+ - if [ "$SRHT_BRANCH" = "deploy" ]; then
+ cd 1kb-club/_site
+ tar -cvz . > ../../site.tar.gz
+ fi
- upload: |
- hut pages publish -d 1kb.club site.tar.gz \ No newline at end of file
+ - if [ "$SRHT_BRANCH" = "deploy" ]; then
+ hut pages publish -d 1kb.club site.tar.gz
+ fi \ No newline at end of file