This commit is contained in:
48
.woodpecker/ci.yml
Normal file
48
.woodpecker/ci.yml
Normal 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"
|
||||
Reference in New Issue
Block a user