Skip to content

Commit b9fe1dc

Browse files
committed
chore: Rename GitHub workflow file and update .NET setup
Moved .github/workflows/main.yml to .github/workflows/generate-docs.yml and added .NET 8 setup step for documentation generation.
1 parent f39c3ea commit b9fe1dc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: docfx-unitypackage
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: true
20+
21+
- name: Setup .NET 8
22+
uses: actions/setup-dotnet@v4
23+
with:
24+
dotnet-version: '8.0'
25+
26+
27+
- name: Build
28+
uses: CaseyHofland/docfx-unitypackage@v1
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Deploy
33+
uses: peaceiris/actions-gh-pages@v3
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_branch: gh-pages
37+
publish_dir: _site

0 commit comments

Comments
 (0)