Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jachinlin committed Apr 9, 2020
1 parent 967f772 commit 7709fdf
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/geektime-dl-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Python package
name: CI & CD

on:
push:
branches:
- master

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
Expand Down Expand Up @@ -35,3 +34,29 @@ jobs:
run: |
pip install -r requirements/dev.txt
python -m pytest
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout master
uses: actions/checkout@v2
with:
ref: master

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "10.x"

- name: Build project
run: |
npm install -g vuepress
vuepress build docs
- name: Upload gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist

0 comments on commit 7709fdf

Please sign in to comment.