designtopack/.gitlab-ci.yml
2024-11-21 16:17:12 +01:00

25 lines
569 B
YAML

stages:
- build and deploy
build and deploy:
stage: build and deploy
only:
- main
image: node:18
before_script:
- apt-get update -qq && apt-get install -y -qq lftp
script:
- npm ci
- npm run build
- |
lftp -c "
set ftp:ssl-allow no;
open -u $USERNAME,$PASSWORD $HOST;
mirror --reverse --verbose --ignore-time --parallel=10 \
-x accounts/
-x cache/
-x sessions/
dist/site site;
mirror --reverse --verbose --ignore-time --parallel=10 \
dist/assets assets;
quit"