steps: build: image: node:12 commands: - 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