forked from frictionlessdata/website
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 860 Bytes
/
main.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
name: Continuous Deployment
on: [push]
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure
run: npm install
- name: Build
run: npm run build
- name: Run tests
run: npm run ci:test
- uses: actions/upload-artifact@v1
with:
name: Videos
path: cypress/videos
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [integration-tests]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure
run: npm install
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: site/.vuepress/dist