blob: 1188b24e349dd9a7eee1ca0118b8bad2b9bc38ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
image: alpine/latest
oauth: pages.sr.ht/PAGES:RW
packages:
- go
- hut
- ruby-full
- ruby-dev
environment:
- DEPLOY_ENV=production
site: 1kb.club
sources:
- https://git.sr.ht/~bt/1kb-club
tasks:
- 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
|