Skip to content

chore: update deploy-docs.yml to include all files in the docs directory #793

chore: update deploy-docs.yml to include all files in the docs directory

chore: update deploy-docs.yml to include all files in the docs directory #793

Workflow file for this run

name: deploy-docs
on:
push:
branches:
- main
- master
paths:
- 'docs/**'
- '.github/workflows/deploy-docs.yml'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up poetry
run: pipx install poetry
- name: Set up python
uses: actions/setup-python@v4
with:
cache: poetry
python-version: '3.7'
- name: Install requirements and activate environment
working-directory: ./python-package
run: |
poetry install
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- name: Build and deploy docs
working-directory: ./docs
run: python -m mkdocs gh-deploy --force
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}