-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.23 KB
/
docfx-build-publish.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
name: DocFX Build and Publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
generate-docs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Create TeeChart license file from secret
uses: lukasa1993/secret-file-action@v1.0.4
id: teechart-license
with:
secret: ${{ secrets.TEECHARTLICENSE }}
b64-decode: false
- name: Copy TeeChart license file
run: copy ${{ steps.teechart-license.outputs.file }} "source\My Project\TeeChart.licenses"
- name: Build Wave
run: msbuild source\Wave.vbproj -restore -property:Platform=x64 -property:Configuration=Release
- name: Install DocFX
run: dotnet tool install -g docfx
- name: Build documentation using docfx
working-directory: docs
run: docfx docfx.json
continue-on-error: false
- name: Publish
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
force_orphan: true