-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.12 KB
/
publishDocs.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
name: Publish documentation
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build Serilog.Sinks.Mongodb.TimeSeries
run: dotnet build --no-restore --configuration Release
- name: Test Serilog.Sinks.Mongodb.TimeSeries
run: dotnet test --no-build --configuration Release --logger GitHubActions
- name: Setup DocFX
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install docfx
- name: DocFX Build
working-directory: docs
run: docfx docfx.json
continue-on-error: false
- name: Publish documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PAT }}
publish_dir: docs/_site
force_orphan: true
cname: sinks-mongodb-timeseries.brammys.com