-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
29 lines (26 loc) · 717 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
image: node:6
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- node_modules/
untracked: true
stages:
- publish
publish docs:
only:
- master
stage: publish
script:
- npm install gitbook-cli -g
- mkdir -p $HOME/.ssh
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- git config --global user.name "nebot"
- git config --global user.email devbot@nebtex.com
- git config --global user.signingkey $nebot_secret_key_gpg
- git config --global commit.gpgsign true
- echo -e "$nebot_key" > $HOME/.ssh/id_rsa
- echo -e "$nebot_gpg" > $HOME/private.key
- gpg --import $HOME/private.key
- chmod 400 $HOME/.ssh/id_rsa
- cp -rf README.md docs/README.md
- make docs