Skip to content

Commit 042b4c4

Browse files
committed
Setting up GitHub Pages publish workflow
1 parent c6d85f8 commit 042b4c4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: DocFx
2+
on: workflow_dispatch
3+
jobs:
4+
publish:
5+
runs-on: windows-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
- name: Setup .NET Core 2.1 SDK
10+
uses: actions/setup-dotnet@v1
11+
with:
12+
dotnet-version: '2.1.x'
13+
- name: Setup .NET Core 3.1 SDK
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: '3.1.x'
17+
- name: Setup .NET 5.0 SDK
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: '5.0.x'
21+
- name: Restore
22+
run: dotnet restore
23+
- name: Build
24+
run: dotnet build --configuration Release --no-restore
25+
- name: Publish
26+
uses: JamesIves/[email protected]
27+
with:
28+
branch: gh-pages
29+
folder: DocFx.AspNetCore.ServerSentEvents/wwwroot

0 commit comments

Comments
 (0)