-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (44 loc) · 1.29 KB
/
docs.yml
File metadata and controls
49 lines (44 loc) · 1.29 KB
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
42
43
44
45
46
47
48
49
---
name: Publish documentation
on:
push:
branches:
- master
jobs:
build:
name: Publish documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docker/cpu/onnx/requirements.txt
pip install -e .
- name: Build documentation
run: |
python matchvec/export_swagger.py
make -C ./docs html
touch ./docs/build/html/.nojekyll
env:
BASE_MODEL_PATH: './model'
TORCH_HOME: './model'
DEBUG: 1
CLASSIFICATION_MODEL: 'resnet18-151-refined'
DETECTION_MODEL: ssd
DETECTION_THRESHOLD: 0.4
BACKEND: 'onnx'
AWS_REGION: 'eu-west-1'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: deploy
uses: docker://peaceiris/gh-pages:v2.3.2
if: success()
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./docs/build/html