Skip to content

Publish docs via GitHub Pages #15

Publish docs via GitHub Pages

Publish docs via GitHub Pages #15

name: Publish docs via GitHub Pages
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.12
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true
- run: poetry lock --no-update && poetry install --no-root
- name: Install polars-bio
run: |
source .venv/bin/activate
pip install polars-bio
- name: Deploy docs
run: poetry run mkdocs gh-deploy --remote-branch gh-pages -f mkdocs.yml --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}