md/.github/workflows/build.yml

25 lines
529 B
YAML
Raw Normal View History

2020-05-02 20:31:24 +08:00
name: Build and Deploy
2020-05-02 19:45:26 +08:00
on:
push:
2020-05-02 20:31:24 +08:00
branches: [ master ]
2020-05-02 19:45:26 +08:00
jobs:
2020-05-02 20:31:24 +08:00
build-and-deploy:
2020-05-02 19:45:26 +08:00
runs-on: ubuntu-latest
steps:
2020-05-02 20:31:24 +08:00
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: dist