Skip to content

Commit 26a241e

Browse files
committed
feat: switch CI from Travis-CI to GitHub Actions
1 parent 3459393 commit 26a241e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/wangdoc.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: ES6 tutorial CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
page-generator:
9+
name: Generating pages
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
persist-credentials: false
16+
- name: Setup Node.js
17+
uses: actions/setup-node@main
18+
with:
19+
node-version: '14'
20+
- name: Install dependencies
21+
run: npm install
22+
- name: Build pages
23+
run: npm run build
24+
- name: Deploy to website
25+
uses: JamesIves/github-pages-deploy-action@3.7.1
26+
with:
27+
GIT_CONFIG_NAME: wangdoc-bot
28+
GIT_CONFIG_EMAIL: yifeng.ruan@gmail.com
29+
REPOSITORY_NAME: wangdoc/website
30+
ACCESS_TOKEN: ${{ secrets.WANGDOC_BOT_TOKEN }}
31+
BASE_BRANCH: master
32+
BRANCH: master # The branch the action should deploy to.
33+
FOLDER: dist # The folder the action should deploy.
34+
TARGET_FOLDER: dist/es6
35+
CLEAN: true # Automatically remove deleted files from the deploy branch
36+
COMMIT_MESSAGE: update from ES6 tutorial
37+
38+
File renamed without changes.

0 commit comments

Comments
 (0)