Skip to content

Commit

Permalink
feat: switch CI from Travis-CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Dec 17, 2020
1 parent 3459393 commit 26a241e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/wangdoc.yml
@@ -0,0 +1,38 @@
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/github-pages-deploy-action@3.7.1
with:
GIT_CONFIG_NAME: wangdoc-bot
GIT_CONFIG_EMAIL: yifeng.ruan@gmail.com
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


File renamed without changes.

0 comments on commit 26a241e

Please sign in to comment.