-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (37 loc) · 1.15 KB
/
docs.yaml
File metadata and controls
46 lines (37 loc) · 1.15 KB
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
name: Build and Deploy Docs
on:
push:
branches:
- main
permissions:
contents: write # needed for peaceiris/actions-gh-pages
jobs:
docs:
name: Build and deploy docs
runs-on: ubuntu-latest
steps:
- name: checkout-code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup-dotnet
uses: actions/setup-dotnet@v4
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', 'global.json') }}
restore-keys: nuget-${{ runner.os }}-
- name: Install tools
run: dotnet tool restore
- name: Build library (Release)
run: dotnet build src/FSharp.Control.TaskSeq/FSharp.Control.TaskSeq.fsproj -c Release
- name: Build docs
run: dotnet fsdocs build --properties Configuration=Release --eval
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: gh-pages
force_orphan: true