You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/deploy.md
+31
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,37 @@ git commit -m 'deploy'
56
56
cd -
57
57
```
58
58
59
+
## GitLab Pages and GitLab CI
60
+
61
+
1. Set correct `base` in `docs/.vuepress/config.js`.
62
+
63
+
If you are deploying to `https://<USERNAME or GROUP>.gitlab.io/`, you can omit `base` as it defaults to `"/"`.
64
+
65
+
If your are deploying to `https://<USERNAME or GROUP>.gitlab.io/<REPO>/`, (i.e. your repository is at `https://gitlab.com/<USERNAME>/REPO>`), set `base` to `"/<REPO>/"`.
66
+
67
+
2. Set `dest` in `.vuepress/config.js` to `public`.
68
+
69
+
3. Create a file called `.gitlab-ci.yml` in the root of your project with the content below. This will build and deploy your site whenever you make changes to your content.
70
+
71
+
```
72
+
image: node:9.11.1
73
+
74
+
pages:
75
+
cache:
76
+
paths:
77
+
- node_modules/
78
+
79
+
script:
80
+
- npm install
81
+
- npm run docs:build
82
+
artifacts:
83
+
paths:
84
+
- public
85
+
only:
86
+
- master
87
+
```
88
+
89
+
59
90
## Netlify
60
91
61
92
1. On Netlify, setup up a new project from GitHub with the following settings:
0 commit comments