-
Notifications
You must be signed in to change notification settings - Fork 114
48 lines (47 loc) · 1.09 KB
/
website.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
46
47
48
name: Continuous Deployment
on:
push:
branches:
- master
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Configure
run: npm install
- name: Build
run: npm run build
- name: Build Schemas
run: npm run buildschemas
- name: Run tests
run: npm run test
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [integration-tests]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Configure
run: npm install
- name: Build
run: npm run build
- name: Build Schemas
run: npm run buildschemas
- name: Publush to Github Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: .vuepress/dist
CLEAN: true