23 lines
451 B
YAML
23 lines
451 B
YAML
when:
|
|
event: pull_request
|
|
|
|
steps:
|
|
build:
|
|
image: node:20
|
|
commands:
|
|
- corepack enable
|
|
- pnpm install
|
|
- pnpm build
|
|
- mv dist/index.html dist/200.html
|
|
|
|
preview:
|
|
image: woodpeckerci/plugin-surge-preview
|
|
settings:
|
|
path: dist/
|
|
surge_token:
|
|
from_secret: surge_token
|
|
forge_type: gitea
|
|
forge_url: https://git.sebclem.fr
|
|
forge_repo_token:
|
|
from_secret: surge_forge_token
|