-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.16 KB
/
ci.yml
File metadata and controls
42 lines (38 loc) · 1.16 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
name: 'Publish to Github pages'
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore Workloads
run: dotnet workload restore
- name: Test
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat="opencover"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- name: Install DocXml
run: dotnet tool install xmldocmd -g
- name: generate docs
working-directory: src/TailoredApps.Shared.DateTime/bin/Debug/netstandard2.0
run: xmldocmd ./TailoredApps.Shared.DateTime.dll ../../../../../docs/Libraries/
- run: pip install mkdocs-material
- name: Publish
run: mkdocs gh-deploy --force