Skip to content

Publish docs via GitHub Pages #16

Publish docs via GitHub Pages

Publish docs via GitHub Pages #16

name: Publish docs via GitHub Pages
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
env:
JUPYTER_PLATFORM_DIRS: 1
name: Deploy docs
runs-on: [self-hosted, Linux, huge-c10m25]
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 }}