Claptrap-ui/.woodpecker/preview.yml
SebClem 8d061f823f
Some checks failed
ci/woodpecker/push/docker_dev Pipeline failed
ci/woodpecker/push/preview Pipeline was successful
Add preview
2024-01-01 15:07:46 +01:00

27 lines
537 B
YAML

when:
branch:
exclude: renovate/*
event: [push, pull_request, manual]
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
when:
event: pull_request