~huyngo/huyngo.srht.site

df10a36fd8a160b764167a41b7ab938d9b19bb56 — Ngô Ngọc Đức Huy 7 months ago 96e9ebd
Add build for sourcehut
1 files changed, 21 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +21 -0
@@ 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