-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.05 KB
/
docs.yaml
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
name: Deploy documentation
on:
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools build
pip install -e '.[docs]'
- name: Get version
id: version
# outputs project, version, and tag
run: python .github/scripts/get_versioninfo.py
- name: Set git user
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Fetch gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: Deploy
run: mike deploy -u '${{ steps.version.outputs.version }}' dev --push