~sporiff/sporiff.dev

5b91e2e6d13d21ae8cefac5232e253ebee54d667 — CiarĂ¡n Ainsworth 4 months ago 0d69ddc
Switch to hut for builds
1 files changed, 15 insertions(+), 18 deletions(-)

M .build.yml
M .build.yml => .build.yml +15 -18
@@ 1,25 1,22 @@
image: alpine/latest 
image: alpine/latest
packages:
  - kiln
  - gmnitohtml
  - hut
oauth: pages.sr.ht/PAGES:RW
environment:
  site: sporiff.dev
tasks:
- build: |
    cd $site
    kiln build
- package_gemini: |
    cd $site
    tar -C public -cvz . > ../site_gemini.tar.gz
- package_html: |
    cd $site
    tar -C public_html -cvz . > ../site_html.tar.gz
- upload_gemini: |
    acurl -f https://pages.sr.ht/publish/$site \
    -Fcontent=@site_gemini.tar.gz \
    -Fprotocol=GEMINI
- upload_html: |
    acurl -f https://pages.sr.ht/publish/$site \
    -Fcontent=@site_html.tar.gz \
    -Fprotocol=HTTPS
  - build: |
      cd $site
      kiln build
  - package_gemini: |
      cd $site
      tar -C public -cvz . > ../site_gemini.tar.gz
  - package_html: |
      cd $site
      tar -C public_html -cvz . > ../site_html.tar.gz
  - upload_gemini: |
      hut pages publish -d $site site_gemini.tar.gz -p GEMINI
  - upload_html: |
      hut pages publish -d $site site_html.tar.gz -p HTTPS