~sircmpwn/pages.sr.ht-examples

13a0d2f7e48c81031c1ca9b7810dc7917257925f — jman 2 months ago f758121
Add Zola example
1 files changed, 16 insertions(+), 0 deletions(-)

A zola.yml
A zola.yml => zola.yml +16 -0
@@ 0,0 1,16 @@
image: alpine/edge
packages: [ zola ]
oauth: pages.sr.ht/PAGES:RW
environment:
  site: www.example.org
sources:
  - https://git.sr.ht/~your_username/my-website
tasks:
  - build: |
      cd my-website
      zola build
  - package: |
      cd my-website
      tar -C public -cvz . > ../site.tar.gz
  - upload: |
      acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz