-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.4 KB
/
docs.yml
File metadata and controls
57 lines (47 loc) · 1.4 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
49
50
51
52
53
54
55
56
57
name: Docs
on:
push:
paths:
- "Wiki/**"
- "**/docs.yml" # this workflow file
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: ⚙️ Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🌌 Get Run Metadata
id: setup-meta
uses: ./.github/actions/get-metadata
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
cache-dependency-path: "**/requirements.txt"
- name: 🐍 Install MkDocs
run: pip install -r ./Wiki/requirements.txt
- name: 📚 Build Docs
run: ./Scripts/Build-MkDocs.ps1
shell: pwsh
- name: 🧪 Set Artifact Name
id: artifact-name
run: echo "name=site_${{ steps.setup-meta.outputs.short-sha }}-${{ steps.setup-meta.outputs.timestamp }}" >> "$GITHUB_OUTPUT"
- name: ⏫ Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./Wiki/site
name: ${{ steps.artifact-name.outputs.name }}
retention-days: 7
- name: ⏺ Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: actions/deploy-pages@v4
with:
artifact_name: ${{ steps.artifact-name.outputs.name }}