26 lines
725 B
YAML
26 lines
725 B
YAML
steps:
|
|
check:
|
|
image: fish
|
|
commands:
|
|
- $HOME/.bun/bin/bun install
|
|
- $HOME/.bun/bin/bun astro check
|
|
when:
|
|
evaluate: 'CI_COMMIT_AUTHOR == "cloudyy"'
|
|
preview:
|
|
image: fish
|
|
commands:
|
|
- $HOME/.bun/bin/bun astro build --outDir /srv/http/zine-preview
|
|
when:
|
|
event: ['deployment']
|
|
path:
|
|
exclude: ['README.md', 'scripts/*']
|
|
build:
|
|
image: fish
|
|
commands:
|
|
- $HOME/.bun/bin/bun astro build --outDir /srv/http/zine
|
|
when:
|
|
branch: main
|
|
event: ['push', 'deployment']
|
|
path:
|
|
exclude: ['README.md', 'scripts/*']
|