-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.22 KB
/
publishDocsWebsite.yml
File metadata and controls
46 lines (38 loc) · 1.22 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
name: Update docs website
on:
push:
branches: [ "master" ]
jobs:
# This job builds the documentation website
# and the commits that to the master branch,
# which will result in replacing the currently published site
build_and_commit:
name: Build & commit docs website
runs-on: ubuntu-slim
env:
DotnetVersion: 8.0.x
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add .NET global tools location to PATH
run: echo "$HOME/.dotnet/tools" >> "$GITHUB_PATH"
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DotnetVersion }}
- name: Install DocFX
run: dotnet tool install --global docfx
- name: Remove old docs
run: dotnet clean CSF.Screenplay.Docs
- name: Build new docs
run: dotnet build -c Docs CSF.Screenplay.Docs
- name: Add & Commit
uses: EndBug/add-and-commit@v9.1.4
with:
add: -A docs/
default_author: github_actor
committer_name: Github Actions Workflow (bot)
committer_email: github-actions-workflow@bots.noreply.github.com
fetch: true
message: Publish updated documentation website
push: origin master --force