try using workspaces
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
workspace:
|
||||||
|
base: /woodpecker
|
||||||
|
path: src
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: cron
|
- event: cron
|
||||||
branch: main
|
branch: main
|
||||||
@@ -6,11 +10,6 @@ when:
|
|||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: deps
|
|
||||||
image: node:22
|
|
||||||
commands:
|
|
||||||
- npm ci
|
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: node:22
|
image: node:22
|
||||||
when:
|
when:
|
||||||
@@ -18,10 +17,11 @@ steps:
|
|||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
commands:
|
commands:
|
||||||
|
- npm ci
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|
||||||
- name: generate-dungeon
|
- name: generate-dungeon
|
||||||
image: node:22
|
image: ghcr.io/puppeteer/puppeteer:latest
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- cron
|
- cron
|
||||||
@@ -31,6 +31,7 @@ steps:
|
|||||||
OLLAMA_API_KEY:
|
OLLAMA_API_KEY:
|
||||||
from_secret: OLLAMA_API_KEY
|
from_secret: OLLAMA_API_KEY
|
||||||
commands:
|
commands:
|
||||||
|
- npm ci
|
||||||
- npm start
|
- npm start
|
||||||
|
|
||||||
- name: upload-to-gitea-release
|
- name: upload-to-gitea-release
|
||||||
|
|||||||
Reference in New Issue
Block a user