-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.11 KB
/
docs.yaml
File metadata and controls
48 lines (40 loc) · 1.11 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
44
45
46
47
48
name: Documentation
on:
push:
branches:
- "v*.*"
- main
jobs:
build_docs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.6
with:
poetry-version: 1.8
- name: Install packages
run: |
poetry install
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Build docs
run: |
poetry run mike deploy --push ${{ steps.extract_branch.outputs.branch }}