Skip to content

fix: update deploy-docs.yml (#1724) #787

fix: update deploy-docs.yml (#1724)

fix: update deploy-docs.yml (#1724) #787

Workflow file for this run

name: deploy-docs
on:
push:
branches:
- main
- master
paths:
- docs/**
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
working-directory: ./python-package
run: |
pip install requests-toolbelt
poetry install --only=docs
- name: Build and deploy docs
working-directory: ./docs
run: mkdocs gh-deploy --force
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}