~vonfry/website

cf043e8e1c4112ef3153ff1fc89fcdd250cfb089 — Vonfry 2 months ago 5392591 20230901
ci: add builds.sr.ht ci file
1 files changed, 17 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +17 -0
@@ 0,0 1,17 @@
image: alpine/latest
oauth: pages.sr.ht/PAGES:RW
packages:
  - hut
  - hugo
environment:
  site: vonfry.name
tasks:
  - test: |
      cd website
      hugo
  - pages: |
      [[ ! ${GIT_REF} =~ ^refs/tags/.*$ ]] && exit
      cd website
      tar -C public -cvz . > ../site.tar.gz
      echo "Pages generated on ${GIT_REF}"
      hut pages publish -d $site ../site.tar.gz