-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (38 loc) · 975 Bytes
/
Copy pathgithub-pages.yml
File metadata and controls
49 lines (38 loc) · 975 Bytes
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
49
name: Docs
on:
push:
branches: [ master ]
permissions:
actions: read
pages: write
id-token: write
# cancels any pending pages deployments so there is only one workflow running at any given time
concurrency:
group: pages
cancel-in-progress: false
jobs:
generate-docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.output.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
- name: Build
run: dotnet build -c Release
- name: DocFX build
working-directory: docs
run: dnx docfx --yes
continue-on-error: false
- name: Upload assets
uses: actions/upload-pages-artifact@v4
with:
path: docs/_site
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4