forked from alan-turing-institute/sqlsynthgen
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.14 KB
/
docs.yml
File metadata and controls
43 lines (43 loc) · 1.14 KB
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
---
name: Publish Documentation
on:
push:
branches:
# need this to be able to run the workflow until it has been merged into main
- overview_documentation
workflow_dispatch:
env:
PYTHON_VERSION: "3.12"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "${{ env.PYTHON_VERSION }}"
- name: Install poetry
shell: bash
run: |
sudo apt install python3-poetry
- name: Configure poetry
shell: bash
run: |
poetry config virtualenvs.in-project true
- name: Install dependencies
shell: bash
run: |
poetry install --all-extras
- name: Build documentation
shell: bash
working-directory: ./docs
run: |
poetry run make html
- name: Publish docs on github Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
force_orphan: true