Files
scrollsmith/.woodpecker/ci.yml
Keli Grubb ed95dd08a2
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
initial commit
2025-08-29 22:56:40 -04:00

49 lines
967 B
YAML

when:
- event: cron
branch: main
cron: "0 2 * * *"
- event: pull_request
- event: push
branch: main
steps:
- name: deps
image: node:22
commands:
- npm ci
caches:
- node_modules
- name: lint
image: node:22
when:
event:
- pull_request
- push
commands:
- npm run lint
caches:
- node_modules
- name: generate-dungeon
image: node:22
when:
event:
- cron
commands:
- npm start
caches:
- node_modules
- name: upload-nextcloud
image: curlimages/curl:latest
when:
event:
- cron
environment:
NEXTCLOUD_URL: ${NEXTCLOUD_URL}
NEXTCLOUD_TOKEN: ${NEXTCLOUD_TOKEN}
commands:
- echo "not uploading yet..."
# - curl -X PUT -H "Authorization: Bearer $NEXTCLOUD_TOKEN" -H "Content-Type: application/pdf" --upload-file tomb-of-shadows.pdf "$NEXTCLOUD_URL/tomb-of-shadows-$(date +%F).pdf"