-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
45 lines (45 loc) · 1018 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
variables:
BUILD_DOCS: 'pnpm run build:mobile_docs -c mobile/.vuepress/config/gitlab.ts'
BUILD_DEMO: 'pnpm run build:demo_mobile --mode=gitlab'
cache:
paths:
- node_modules/
- demo/mobile/node_modules
- docs/node_modules
- packages/mobile/node_modules
- packages/uni-vue3/node_modules
- packages/use/node_modules
- packages/utils/node_modules
- demo/mobile/dist
- docs/mobile/.vuepress/dist
stages:
- install
- build
- deploy
install:
stage: install
script:
- 'pnpm install'
only:
- tags
build:
stage: build
script:
- $BUILD_DOCS
- $BUILD_DEMO
- ls
only:
- tags
pages:
stage: deploy
script:
- rm -rf public/*
- mkdir -p public/demo
- ls
- mv demo/mobile/dist/* public/demo
- mv docs/mobile/.vuepress/dist/* public/
artifacts:
paths:
- public
only:
- tags