Add build for sourcehut

This commit is contained in:
Ngô Ngọc Đức Huy 2021-03-14 13:59:32 +07:00
parent 96e9ebd4f6
commit df10a36fd8
Signed by: huyngo
GPG Key ID: 904AF1C7CDF695C3
1 changed files with 21 additions and 0 deletions

21
.build.yml Normal file
View File

@ -0,0 +1,21 @@
image: debian/latest
oauth: pages.sr.ht/PAGES:RW
environment:
site: huyngo.srht.site
tasks:
- install: |
sudo apt install ruby-full golang
gem install jekyll bundler
git clone https://git.sr.ht/~sircmpwn/openring
cd openring
go build -o openring
sudo cp openring /usr/local/bin/
- package: |
cd $site
./create-webring.sh
bundle update
bundle exec jekyll build
cd _site
tar -cvz . > ../../site.tar.gz
- upload: |
acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz