Use astro build --outDir instead of copying dist to another dir
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This ensures that the outDir is clean and doesn't contain old files from previous builds
This commit is contained in:
parent
6a471b641e
commit
b3d234a0b0
|
@ -7,9 +7,7 @@ steps:
|
|||
preview:
|
||||
image: fish
|
||||
commands:
|
||||
- $HOME/.bun/bin/bun astro build
|
||||
- mkdir -p /srv/http/zine-preview
|
||||
- cp -r dist/* /srv/http/zine-preview
|
||||
- $HOME/.bun/bin/bun astro build --outDir /srv/http/zine-preview
|
||||
when:
|
||||
event: ['deployment']
|
||||
path:
|
||||
|
@ -17,9 +15,7 @@ steps:
|
|||
build:
|
||||
image: fish
|
||||
commands:
|
||||
- $HOME/.bun/bin/bun astro build
|
||||
- mkdir -p /srv/http/zine
|
||||
- cp -r dist/* /srv/http/zine
|
||||
- $HOME/.bun/bin/bun astro build --outDir /srv/http/zine
|
||||
when:
|
||||
branch: main
|
||||
event: ['push', 'deployment']
|
||||
|
|
Loading…
Reference in a new issue