Skip to content

Commit bc8df1f

Browse files
committed
add docs deploy action
1 parent 9e636c8 commit bc8df1f

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/deploy-docs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'docs/**'
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: make script executable
16+
run: chmod u+x build.sh
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 8.x.x
21+
- name: make script executable
22+
run: chmod u+x build.sh
23+
- name: restore tools
24+
run: dotnet tool restore
25+
- name: Build Docs
26+
working-directory: ./
27+
run: ./build.sh builddocs
28+
- name: Deploy
29+
uses: JamesIves/github-pages-deploy-action@v4
30+
with:
31+
folder: output # The folder the action should deploy.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -400,3 +400,4 @@ FodyWeavers.xsd
400400
*.sln.iml
401401
/tmp/watch
402402
/.fsdocs
403+
/output

BioFSharp.Stats.sln

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ EndProject
3434
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{812698C9-F1C7-4708-8B28-B22FAAC0ADA4}"
3535
ProjectSection(SolutionItems) = preProject
3636
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
37+
.github\workflows\deploy-docs.yml = .github\workflows\deploy-docs.yml
3738
EndProjectSection
3839
EndProject
3940
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "BioFSharp.Stats", "src\BioFSharp.Stats\BioFSharp.Stats.fsproj", "{EFEC7FF4-B7CB-4C70-B396-73B971A4A21A}"

0 commit comments

Comments
 (0)