-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (34 loc) · 983 Bytes
/
Copy pathdocumentation.yml
File metadata and controls
36 lines (34 loc) · 983 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
name: Sphinx build and deploy documentation on gh-pages
on:
push:
branches:
- main
jobs:
build-main-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install requisites
run: python -m pip install --upgrade pip
- name: Install pandoc
run: sudo apt install -y pandoc
- name: Install hatch
run: python -m pip install hatch
- name: Build HTML
run: python -m hatch run docs:build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
#destination_dir: ${{ steps.versioning.outputs.VERSION}}
publish_dir: docs/build/html