-
Notifications
You must be signed in to change notification settings - Fork 228
45 lines (43 loc) · 1.03 KB
/
build_test_deploy.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
name: Build/Test/Deploy
on:
push:
branches-ignore:
- gh-pages
workflow_dispatch:
pull_request:
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Checkout Repository
uses: actions/checkout@v3
# with:
# persist-credentials: false
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/[email protected]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master'}}
with:
token: ${{ secrets.ACCESS_TOKEN }}
folder: .vuepress/dist/
clean: true
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install
run: npm ci
- name: Lint
run: npm run lint-ci