Skip to content

Update README

Update README #7

name: Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.PERSONAL_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install PyTorch without CUDA
run: pip install torch==1.13.1+cpu torchvision==0.14.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Check pytorch is installed
run: "python -c 'import torch; print(torch.cuda.is_available())'"
- name: Install requirements
run: |
python -m pip install numpy wheel Cython scipy opencv-python
python -m pip install -r plugins/reid/bpbreid/requirements.txt
python -m pip install --no-build-isolation -r requirements_docs.txt
- name: Install OpenMM libraries
run: mim install "mmcv-full==1.7.1"
- name: Build Documentation
run: cd docs && make html
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
external_repository: PbTrack/pbtrack.github.io
publish_branch: main # default: gh-pages
publish_dir: ./docs/_build/html
keep_files: true