-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 875 Bytes
/
docs.yml
File metadata and controls
37 lines (34 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Documentation
run-name: ${{ github.actor }} is building and deploying the documentation
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
- src/**
- mkdocs.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Setup Poetry
uses: snok/install-poetry@v1
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Deploy documentation
run: |
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/peinser/pyconiq.git
git fetch
poetry install --with docs
poetry run mkdocs gh-deploy --clean --verbose