-
Notifications
You must be signed in to change notification settings - Fork 352
50 lines (45 loc) · 1.16 KB
/
builddocsite.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
46
47
48
49
50
name: Build Documentation Site
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
permissions: read-all
jobs:
documentation:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Wait for actions to finish
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout master branch
uses: actions/checkout@v4
with:
ref: master
path: master
- name: Checkout dev branch
uses: actions/checkout@v4
with:
ref: dev
path: dev
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x
- run: dotnet tool install -g docfx --version 2.72.1
- name: Build docs
shell: pwsh
run: |
./dev/pages/Build-Site.ps1
- name: Add & Commit & Push
uses: EndBug/add-and-commit@v9
with:
cwd: ./gh-pages
push: true