rtd - add poetry to conf #61
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: docs | |
on: | |
push: | |
branches: | |
- master | |
env: | |
DOIT_NUM_PROCESS: 0 | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v2 | |
- name: install python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.12 | |
- name: install requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config virtualenvs.create false --local | |
poetry install | |
- name: build docs | |
run: doit docs | |
- name: remove gitignore | |
run: rm .gitignore | |
- name: deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: . | |
publish_branch: rtd | |
force_orphan: true |