32 lines
734 B
YAML
32 lines
734 B
YAML
# Exclude page pipeline to be run on "pages" branch
|
|
when:
|
|
branch:
|
|
exclude: pages
|
|
event: [push, pull_request, manual]
|
|
|
|
# Recursive cloning is used to fully clone the themes given as Git submodules
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
recursive: true
|
|
|
|
steps:
|
|
build:
|
|
image: denoland/deno:latest
|
|
commands:
|
|
- cd slidev
|
|
- deno install --allow-scripts=npm:playwright-chromium
|
|
- deno task build --base /deno/
|
|
when:
|
|
event: [pull_request, push, manual]
|
|
|
|
deploy:
|
|
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
|
|
settings:
|
|
folder: slidev/dist
|
|
ssh_key:
|
|
from_secret: ssh_key
|
|
when:
|
|
event: [push, manual]
|
|
branch: master |