~sircmpwn/pages.sr.ht-examples

502bae09ee7cd75215b71eb939a56a8bdf58d68c — Tianhao Wang 2 months ago 09a1ef9
add mdbook example

Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
1 files changed, 14 insertions(+), 0 deletions(-)

A mdbook.yml
A mdbook.yml => mdbook.yml +14 -0
@@ 0,0 1,14 @@
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- mdbook
environment:
  site: example.org
tasks:
- package: |
    cd $site
    mdbook build
    tar -C book -cvz . > ../site.tar.gz
- upload: |
    hut pages publish -d $site site.tar.gz