19 lines
527 B
YAML
19 lines
527 B
YAML
steps:
|
|
build:
|
|
image: node:latest
|
|
commands:
|
|
- apt-get update && apt-get install -y --no-install-recommends build-essentials
|
|
- cd src
|
|
- npm install
|
|
- npx presskit build --output ../out --pretty-links --collapse-menu --clean-build-folder
|
|
- cp .htaccess ../out
|
|
deploy:
|
|
image: debian:latest
|
|
when:
|
|
- event: [push, manual]
|
|
branch: main
|
|
commands:
|
|
- rm -rfv /var/www/press/*
|
|
- cp -rv out/. /var/www/press
|
|
volumes:
|
|
- /var/www/press:/var/www/press
|