initial commit
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

This commit is contained in:
2025-08-29 22:56:40 -04:00
commit ed95dd08a2
11 changed files with 2540 additions and 0 deletions

48
.woodpecker/ci.yml Normal file
View File

@@ -0,0 +1,48 @@
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"