forked from CouncilDataProject/cdp-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 847 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
name: Documentation
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Packages
run: |
sudo apt update
sudo apt-get install graphviz --fix-missing
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
just install
- name: Generate Docs
run: |
just generate-docs
touch docs/_build/.nojekyll
- name: Publish Docs
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/_build/