Added a ci step for generating a preview of development branches
This commit is contained in:
parent
ae78a900a0
commit
b93809d073
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue