Use astro build --outDir instead of copying dist to another dir
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:
Anthony Wang 2024-02-24 22:29:56 -05:00
parent 6a471b641e
commit b3d234a0b0
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ

View file

@ -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']