-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 805 Bytes
/
nodejs.yml
File metadata and controls
36 lines (31 loc) · 805 Bytes
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
name: DEPLOY GITHUB PAGE
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install, build
run: |
npm ci
npm run docs:build
env:
CI: true
- name: deploy
run: |
cd docs/.vuepress/dist
git init
git config --local user.email "longde_chen@163.com"
git config --local user.name "SmileSmith"
git add -A
git commit -m 'deploy'
git push -f https://SmileSmith:$github_token@github.com/SmileSmith/SmileSmith.github.io.git master
env: # environment variable
github_token: ${{ secrets.token_github }}