-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (40 loc) · 1.15 KB
/
mkdocs.yml
File metadata and controls
40 lines (40 loc) · 1.15 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
name: docs
on:
push:
branches:
- main
permissions:
contents: write
id-token: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: pip install mkdocs-material mkdocs-static-i18n
- run: mkdocs build
- run: cd /home/runner/work/docs/docs/site && tar --dereference -cvf "/home/runner/work/_temp/artifact.tar" .
- uses: actions/upload-artifact@v4
with:
name: github-pages
path: /home/runner/work/_temp/artifact.tar
retention-days: 1
if-no-files-found: error
compression-level: 6
overwrite: false
include-hidden-files: false
- uses: actions/deploy-pages@v4
with:
timeout: 600000
error_count: 10
reporting_interval: 5000
artifact_name: github-pages
preview: false