drifblim/.build.yml

21 lines
704 B
YAML

image: debian/stable
oauth: pages.sr.ht/PAGES:RW
environment:
SITE: rabbits.srht.site/drifblim
sources:
- https://git.sr.ht/~rabbits/drifblim
tasks:
- prepare: |
curl -fsS https://rabbits.srht.site/uxn/uxn-lin64.tar.gz | tar -zx
- build: |
cd drifblim
../uxn/uxnasm src/drifblim.tal ../drifblim.rom
- upload: |
tar -czf out.tar.gz drifblim.rom
acurl() {
set +x
curl -H "Authorization: Bearer ${OAUTH2_TOKEN}" "${@}"
set -x
}
acurl -fsS "https://pages.sr.ht/publish/${SITE}" -Fcontent=@out.tar.gz
acurl -fsS "https://pages.sr.ht/publish/${SITE}" -Fcontent=@out.tar.gz -Fprotocol=GEMINI