~fnux/ch.mobilizon

0254ac5a7803a34552508759a900544407234239 — Timothée Floure 1 year, 22 days ago abe7544
Move to pages.sr.ht
3 files changed, 15 insertions(+), 8 deletions(-)

A .build.yml
M Makefile
D deploy.sh
A .build.yml => .build.yml +13 -0
@@ 0,0 1,13 @@
image: alpine/latest
oauth: pages.sr.ht/PAGES:RW
packages:
  - make
  - cmark
environment:
  site: mobilizon.ch
tasks:
  - package: |
      cd ch.mobilizon
      make archive
  - upload: |
      acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz

M Makefile => Makefile +2 -2
@@ 12,8 12,8 @@ all: index.html
clean:
	rm -rf *.frag *.html

deploy: index.html $(BLOBS)
	./deploy.sh $(DEPLOYURL) $^
archive: index.html $(BLOBS)
	tar -cvz index.html $(BLOBS) > ../site.tar.gz

# Pages
index.html: pagetemplate.sh

D deploy.sh => deploy.sh +0 -6
@@ 1,6 0,0 @@
#!/bin/sh

sftp -b - "www-mobilizonch@gandalf.thedesroches.net" <<- EOF
	-rm htdocs/*
	$(for f in "$@"; do echo "put -R $f htdocs/"; done)
EOF