~sircmpwn/git-send-email.io

ed83187eaa0e50b6c0da37a5ecefc73d08e65fdd — Drew DeVault 3 years ago af1f740 0.1.11
Use pages.sr.ht for deploy
1 files changed, 8 insertions(+), 7 deletions(-)

M .builds/static.yml
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