docs/.gitlab-ci.yml
2023-09-27 20:09:58 +00:00

28 lines
509 B
YAML

default:
image: node:latest
tags:
- node
stages:
- build
- deploy
build:
stage: build
artifacts:
paths:
- dist/
script:
- npm install --arch=arm64 --platform=linux --libc=musl sharp
- npm install
- npm run build
deploy:
stage: deploy
script:
- apt-get install ncftp
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com docs dist/*
environment:
name: docs
url: https://docs.pls5618.com