Press/.woodpecker/main.yml
Ell 6c8f42a0f9
Some checks failed
ci/woodpecker/push/main Pipeline failed
install build-essential to hopefully fix make issue?
2023-07-02 19:38:59 +02:00

20 lines
508 B
YAML

steps:
build:
image: node:latest
commands:
- apt-get install -y --no-install-recommends build-essential
- 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