Added a ci step for generating a preview of development branches
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/deployment/woodpecker Pipeline was successful

This commit is contained in:
Cloudyy 2024-02-11 16:31:57 -03:00
parent ae78a900a0
commit b93809d073
Signed by: cloudyy
GPG key ID: 035104A645BAEADD

View file

@ -4,6 +4,16 @@ steps:
commands:
- $HOME/.bun/bin/bun install
- $HOME/.bun/bin/bun astro check
preview:
image: fish
commands:
- $HOME/.bun/bin/bun astro build
- mkdir -p /srv/http/zine-preview
- cp -r $HOME/.cache/woodpecker/zine/dist/* /srv/http/zine-preview
when:
event: ['deployment']
path:
exclude: ['README.md', 'scripts/*']
build:
image: fish
commands: