-
Notifications
You must be signed in to change notification settings - Fork 77
45 lines (39 loc) · 1.01 KB
/
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: "Docs"
on:
push:
branches:
- master
paths:
- 'docs/**'
- 'adala/**'
- '.github/workflows/docs.yml'
env:
CACHE_NAME_PREFIX: v1
jobs:
upload:
name: "Upload"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
id: setup_python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/cache@v3
name: Configure pip cache
id: pip-cache
with:
path: ~/.cache/pip
key: ${{ env.CACHE_NAME_PREFIX }}-${{ runner.os }}-pip-${{ steps.setup_python.outputs.python-version }}-adala-${{ hashFiles('requirements.txt', 'tests/requirements-test.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -e .
pip install -r docs/requirements.txt
- name: Deploy docs
run: |
cd docs/
mkdocs gh-deploy --force