Skip to content

chore(main): release 1.46.0 (#537) #429

chore(main): release 1.46.0 (#537)

chore(main): release 1.46.0 (#537) #429

Workflow file for this run

#----------------------------------------------
# Generate and upload documentation (only on push to main)
#----------------------------------------------
name: Generate documentation
on:
pull_request:
# on pull request we just want to build to see nothing is broken
paths:
- "docs/**"
- ".github/workflows/generate-docs.yml"
- "mkdocs.yml"
push:
branches:
- main
jobs:
publish-docs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.11]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup Python version
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Generate documentation
run: bash ./build_mkdocs.sh
# Deploy docs to gh_pages if we are pushing to main
# Example from https://github.com/marketplace/actions/deploy-to-github-pages
- name: Deploy 🚀
# we only deploy on push to main
if: |
github.event_name == 'push' && github.event.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: gh_pages # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch