-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 949 Bytes
/
api-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
name: API documentation
on:
release:
types:
- published
concurrency:
group: docs-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: 'write'
actions: 'write'
steps:
- uses: actions/checkout@v4
- uses: eshwen/adrenaline/[email protected]
with:
python-version: '3.10'
install-dev-deps: true
- name: Get version number
uses: nowsprinting/check-version-format-action@v4
id: version
with:
prefix: 'v'
- name: Build docs
run: |
git fetch origin gh-pages --depth=1
git config user.name github-actions # Required for Mike
git config user.email [email protected]
poetry run mike deploy --update-aliases --push ${{ steps.version.outputs.major_without_prefix }}.${{ steps.version.outputs.minor }} latest