-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (38 loc) · 1.06 KB
/
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
36
37
38
39
40
41
name: Main workflow
on:
push:
branches:
- main
jobs:
blobconverter:
name: Update BlobConverter API
runs-on: ubuntu-latest
steps:
- name: Send update
run: curl https://blobconverter.luxonis.com/update
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
working-directory: website
- run: npm run build
working-directory: website
- run: python3 -m pip install -r requirements.txt
working-directory: website
- run: python3 populate_website.py && ls -lah ./public
working-directory: website
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/public
cname: zoo.luxonis.com