Files
scrollsmith/.woodpecker/ci.yml
keligrubb 95daefa9ef
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
fix caching warnings
2025-08-29 23:20:27 -04:00

52 lines
1009 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
cache:
paths:
- node_modules
- name: lint
image: node:22
when:
event:
- pull_request
- push
commands:
- npm run lint
cache:
paths:
- node_modules
- name: generate-dungeon
image: node:22
when:
event:
- cron
commands:
- npm start
cache:
paths:
- 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"