Factorized convolution: fix dilation #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
python -m pip install -r doc/requirements_doc.txt | |
python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu | |
- name: Install package | |
run: | | |
python -m pip install -e . | |
- name: Make doc | |
run: | | |
cd doc | |
python minify.py | |
make html | |
cd .. | |
- name: Push docs | |
run: | | |
# See https://github.community/t/github-actions-bot-email-address/17204/5 | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions" | |
git fetch origin gh-pages | |
git checkout gh-pages | |
git rm -r dev/* | |
cp -r doc/_build/html/* dev | |
git add dev | |
# If the doc is up to date, the script shouldn't fail, hence --allow-empty | |
# Might be a cleaner way to check | |
git commit --allow-empty -m "Deployed to GitHub Pages" | |
git push --force origin gh-pages |