-
Notifications
You must be signed in to change notification settings - Fork 65
35 lines (32 loc) · 954 Bytes
/
push-master.yml
File metadata and controls
35 lines (32 loc) · 954 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
name: Build+Test+Docs
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build Debug
run: dotnet build --no-restore
- name: Run Debug Tests (Release tests fail to discover)
run: dotnet test --no-build --verbosity normal
- name: Build Release
run: dotnet build --no-restore --configuration=Release
- name: Restore tools
run: dotnet tool restore
- name: Run fsdocs
run: dotnet fsdocs build --eval --strict --properties Configuration=Release
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: gh-pages
force_orphan: true