dekker.one/.build.yml
2023-11-29 22:34:40 +11:00

16 lines
348 B
YAML

image: alpine/latest
packages:
- npm
oauth: pages.sr.ht/PAGES:RW
environment:
site: 'dekker.one'
NEXT_PUBLIC_SITE_URL: 'https://dekker.one'
tasks:
- package: |
cd $site
npm install
npm run build
tar -C out -cvz . > ../site.tar.gz
- upload: |
acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz