-
Notifications
You must be signed in to change notification settings - Fork 223
38 lines (35 loc) · 1.08 KB
/
wangdoc.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
name: ES6 tutorial CI
on:
push:
branches:
- master
jobs:
page-generator:
name: Generating pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@main
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Build pages
run: npm run build
- name: Deploy to website
uses: JamesIves/[email protected]
with:
GIT_CONFIG_NAME: wangdoc-bot
GIT_CONFIG_EMAIL: [email protected]
REPOSITORY_NAME: wangdoc/website
ACCESS_TOKEN: ${{ secrets.WANGDOC_BOT_TOKEN }}
BASE_BRANCH: master
BRANCH: master # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
TARGET_FOLDER: dist/es6
CLEAN: true # Automatically remove deleted files from the deploy branch
COMMIT_MESSAGE: update from ES6 tutorial