-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 902 Bytes
/
docs.yml
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
38
39
40
41
42
43
44
45
name: Build Documentation
on:
push:
branches:
- main
tags:
- "**"
workflow_dispatch:
permissions:
contents: write
jobs:
build-docs:
concurrency: ci-${{ github.ref }}
name: Build docs
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
# Grap the latest commit from the branch
- name: Checkout the branch
uses: actions/[email protected]
with:
persist-credentials: false
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Hatch
uses: pypa/hatch@install
- name: Build and deploy the documentation
run: hatch run docs:deploy
- name: Deploy Page 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: site