Skip to content

Commit 15647be

Browse files
authored
Create publish.yml
1 parent 15137f0 commit 15647be

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: .NET Core
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup .NET Core
15+
uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: 3.1.301
18+
- name: Install tools
19+
run: dotnet tool restore
20+
- name: Install dependencies
21+
run: dotnet restore
22+
- name: Build
23+
run: dotnet build --configuration Release --no-restore
24+
- name: Test
25+
run: dotnet test --no-restore --verbosity normal
26+
- name: Run fsdocs
27+
run: dotnet fsdocs build --properties Configuration=Release
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
personal_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./output
33+
publish_branch: gh-pages
34+
force_orphan: true

0 commit comments

Comments
 (0)