Commit d8ada446 authored by zhouzihao's avatar zhouzihao

更新.gitlab-ci.yml

parent 787d6dcf
Pipeline #86 failed
......@@ -34,6 +34,10 @@
image: node:10-alpine
cache:
paths:
- node_modules/
before_script:
- npm install gitbook-cli -g
- gitbook fetch 3.2.3
......@@ -52,11 +56,17 @@ build:
stage: build
script:
- gitbook build . public
artifacts:
paths:
- public
expire_in: 1 week
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
- rcync
environment:
name: staging
url: https://staging.example.com
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment