-
Notifications
You must be signed in to change notification settings - Fork 48
44 lines (38 loc) · 1.09 KB
/
build.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
name: WgpSec-POC-CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout main
uses: actions/checkout@v2
with:
ref: master
- name: install nodejs
uses: actions/setup-node@v1
- name: configue gitbook
run: |
npm install -g gitbook-cli
gitbook install
- name: generate _book folder
run: |
gitbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
publish_dir: ./_book
external_repository: wgpsec/wiki
cname: poc.wgpsec.org
user_name: 'WgpSec Continuous Integration'
user_email: '[email protected]'
- name: Mirror to Coding.net
uses: wearerequired/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }}
with:
source-repo: [email protected]:wgpsec/wiki.git
destination-repo: [email protected]:keac/poc/poc.git