mirror of https://git.sr.ht/~rabbits/uxnlin
23 lines
613 B
YAML
23 lines
613 B
YAML
image: debian/stable
|
|
oauth: pages.sr.ht/PAGES:RW
|
|
environment:
|
|
SITE: rabbits.srht.site/uxnlin
|
|
sources:
|
|
- https://git.sr.ht/~rabbits/uxn11
|
|
- https://git.sr.ht/~rabbits/uxnlin
|
|
tasks:
|
|
- prepare: |
|
|
cd uxn11
|
|
cc src/uxnasm.c -o ../uxnasm
|
|
- assemble: |
|
|
cd uxnlin
|
|
../uxnasm src/uxnlin.tal ../uxnlin.rom
|
|
- upload: |
|
|
tar -czf out.tar.gz uxnlin.rom
|
|
acurl() {
|
|
set +x
|
|
curl -H "Authorization: Bearer ${OAUTH2_TOKEN}" "${@}"
|
|
set -x
|
|
}
|
|
acurl -fsS "https://pages.sr.ht/publish/${SITE}" -Fcontent=@out.tar.gz
|