-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.19 KB
/
doc.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
name: Build doc with docgen & publish it to git hub pages
on:
push:
branches: [ main ]
workflow_dispatch:
branches: [ main ]
jobs:
build:
name: doc
runs-on: ubuntu-latest
env:
config: 'Release'
gs-nuget: https://www.myget.org/F/gehtsoft-public/api
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.301
- name: Build release version
run: |
dotnet restore
dotnet build --configuration $config --no-restore
- name: Setup envionment for doc
run: |
echo "gs-nuget=https://www.myget.org/F/gehtsoft-public/api" >> $GITHUB_ENV
- name: build doc
run: |
cd doc
dotnet restore project.proj
dotnet build project.proj /t:Scan,Raw --no-restore
dotnet build project.proj /t:MakeDoc --no-restore
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: doc/dst
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}