~sircmpwn/pages.sr.ht-examples

4e13eb1f1cede4d98d8c1c3daafb9444c0e95960 — Fabio Bento Luiz 1 year, 26 days ago c3b42b3
Jekyll example
1 files changed, 19 insertions(+), 0 deletions(-)

A jekyll.yml
A jekyll.yml => jekyll.yml +19 -0
@@ 0,0 1,19 @@
image: debian/stable
oauth: pages.sr.ht/PAGES:RW
packages:
- ruby-full
- ruby-dev
environment:
  site: example.org
tasks:
- install-bundler: |
    sudo gem install bundler
- build: |
    cd $site
    sudo bundle install
    sudo bundle exec jekyll build
- package: |
    cd $site/_site
    tar -cvz . > ../../site.tar.gz
- upload: |
    acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz