Files
scrollsmith/.woodpecker/ci.yml
keligrubb fc4589384d
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/cron/ci Pipeline failed
completely rework generation to make it more flavorful and fast.
2025-08-30 23:03:15 -04:00

46 lines
858 B
YAML

when:
- event: cron
branch: main
- event: pull_request
- event: push
branch: main
steps:
- name: deps
image: node:22
commands:
- npm ci
- name: lint
image: node:22
when:
event:
- pull_request
- push
commands:
- npm run lint
- name: generate-dungeon
image: node:22
when:
event:
- cron
commands:
- npm start
- name: upload-to-gitea-release
image: curlimages/curl:latest
when:
event:
- cron
environment:
GITEA_TOKEN: ${GITEA_TOKEN}
commands:
- pdf=$(ls *.pdf | head -n1)
- tag=$(date +%F)
- |
curl -X POST \
-H "Authorization: token $GITEA_TOKEN" \
-F "attachment=@$pdf" \
"https://git.keligrubb.com/api/v1/repos/keligrubb/scrollsmith/releases/$tag/assets"