-
Notifications
You must be signed in to change notification settings - Fork 21
45 lines (38 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
42
43
44
45
name: Docs
on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- "documentation/**"
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/documentation
steps:
- name: Chekout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.x"
- name: Configure git
run: |
git config user.name "GitHub Action"
git config user.email "github-action@users.noreply.github.com"
- name: Install MkDocs
run: |
python -m pip install --upgrade pip
pip install wheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Deploy
run: |
mike deploy main -p
mike set-default main -p
mike retitle main "Beta" -p