mirror of https://git.sr.ht/~rabbits/nasu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
753 B
22 lines
753 B
image: debian/stable |
|
oauth: pages.sr.ht/PAGES:RW |
|
environment: |
|
SITE: rabbits.srht.site/nasu |
|
sources: |
|
- https://git.sr.ht/~rabbits/nasu |
|
tasks: |
|
- prepare: | |
|
curl -fsS https://rabbits.srht.site/uxn/uxn-lin64.tar.gz | tar -zx |
|
- build: | |
|
cd nasu |
|
cat src/main.tal src/manifest.tal src/assets.tal > bin/nasu.tal |
|
../uxn/uxnasm bin/nasu.tal ../nasu.rom |
|
- upload: | |
|
tar -czf out.tar.gz nasu.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
|
|
|