Skip to content

ci(publish.yml): Remove cache and preinstall in publish #5

ci(publish.yml): Remove cache and preinstall in publish

ci(publish.yml): Remove cache and preinstall in publish #5

Workflow file for this run

name: docs
on:
- push
permissions:
contents: write
jobs:
docs:
name: Docs
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python 3.8
id: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --all-extras --no-interaction --no-root
- name: Install project
run: poetry install --all-extras --no-interaction
- name: Build documentation
run: |
source $VENV
poe docs
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true