1 files changed, 6 insertions(+), 5 deletions(-)
M .build.yml
M .build.yml => .build.yml +6 -5
@@ 3,19 3,20 @@ oauth: pages.sr.ht/PAGES:RW
environment:
SITE: rabbits.srht.site/cccc
sources:
+ - https://git.sr.ht/~rabbits/uxn11
- https://git.sr.ht/~rabbits/cccc
tasks:
- prepare: |
- curl -fsS https://rabbits.srht.site/uxn/uxn-lin64.tar.gz | tar -zx
- - build: |
+ cd uxn11
+ cc src/uxnasm.c -o ../uxnasm
+ - assemble: |
cd cccc
- ../uxn/uxnasm src/cccc.tal ../cccc.rom
+ ../uxnasm src/cccc.tal cccc.rom
- upload: |
- tar -czf out.tar.gz cccc.rom
+ tar -czf out.tar.gz cccc/cccc.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