-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1022 Bytes
/
Build_DocsSite.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
38
39
40
41
42
43
44
45
name: Build_DocsSite
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
- mkdocs.yml
- .github/workflows/Build_DocsSite.yml
jobs:
DeployDocs:
name: Build and deploy docs
runs-on: ubuntu-latest
# Grant the minimum permissions necessary for this job to publish to GitHub Pages
permissions:
contents: write
pages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Using caches in a larger project can really speed up builds
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-mkdocs
path: .cache
- name: Setup PowerShell
uses: bjompen/UpdatePWSHAction@v1.0.1
with:
FixedVersion: '7.3.12'
- name: Set permissions for /docs directory
run: sudo chmod -R 777 /docs
- name: MkDocs GH-Deploy
if: github.ref == 'refs/heads/main'
shell: pwsh
run: ./build.ps1 -Bootstrap -Task PublishDocs