M .builds/static.yml => .builds/static.yml +8 -7
@@ 1,11 1,12 @@
-image: alpine/3.12
-packages:
- - rsync
+image: alpine/3.13
sources:
- https://git.sr.ht/~sircmpwn/git-send-email.io
-secrets:
- - fa00a8d3-7b63-42d5-8060-3bb31c3e3018 # ssh deploy key
+oauth: pages.sr.ht/PAGES:RW
+environment:
+ site: git-send-email.io
tasks:
+- package: |
+ cd $site
+ tar -cvzf ../site.tar.gz *.html *.css static/*
- upload: |
- echo "StrictHostKeyChecking=no" >> ~/.ssh/config
- rsync -rP git-send-email.io deploy@static1.sr.ht:/var/www/
+ acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz