Commit 7758c94 1 parent 789b1b8 commit 7758c94 Copy full SHA for 7758c94
File tree 3 files changed +27
-18
lines changed
3 files changed +27
-18
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,17 @@ jobs:
13
13
runs-on : windows-latest
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v4.1.1
16
+ uses : actions/checkout@v4
17
17
with :
18
18
submodules : true
19
19
20
20
- name : Setup .NET Core SDK
21
- uses : actions/setup-dotnet@v4.0.0
21
+ uses : actions/setup-dotnet@v4
22
22
with :
23
23
dotnet-version : 8.x
24
-
24
+
25
25
- name : Restore NuGet Packages
26
26
run : dotnet restore Bonsai.ML.sln
27
27
28
28
- name : Build Solution
29
- run : dotnet build Bonsai.ML.sln -c Release
29
+ run : dotnet build Bonsai.ML.sln -c Release
Original file line number Diff line number Diff line change 1
- # Builds and publishes the documentation website to gh-pages branch
1
+ # Builds and publishes the documentation website
2
2
name : Build docs
3
3
4
4
on :
5
5
workflow_dispatch :
6
6
7
+ concurrency :
8
+ group : docs
9
+ cancel-in-progress : true
10
+
11
+ permissions :
12
+ # Both required by actions/deploy-pages
13
+ pages : write
14
+ id-token : write
15
+
7
16
jobs :
8
17
build_docs :
9
18
runs-on : windows-latest
@@ -14,31 +23,31 @@ jobs:
14
23
submodules : true
15
24
16
25
- name : Setup .NET Core SDK
17
- uses : actions/setup-dotnet@v4.0.0
26
+ uses : actions/setup-dotnet@v4
18
27
with :
19
28
dotnet-version : 8.x
20
-
29
+
21
30
- name : Restore NuGet Packages
22
31
run : dotnet restore Bonsai.ML.sln
23
32
24
33
- name : Build Solution
25
34
run : dotnet build Bonsai.ML.sln -c Release
26
-
35
+
27
36
- name : Setup DocFX
28
37
run : dotnet tool restore
29
38
30
39
- name : Setup Bonsai
31
40
working-directory : .bonsai
32
41
run : ./Setup.ps1
33
-
42
+
34
43
- name : Build Documentation
35
44
working-directory : docs
36
45
run : ./build.ps1
37
46
38
- - name : Publish to github pages
39
- uses : peaceiris/ actions-gh- pages@v3.9.3
47
+ - name : Upload GitHub Pages Artifact
48
+ uses : actions/upload- pages-artifact @v3
40
49
with :
41
- github_token : ${{ secrets.GITHUB_TOKEN }}
42
- publish_dir : docs/_site
43
- publish_branch : gh-pages
44
- force_orphan : true
50
+ path : docs/_site
51
+
52
+ - name : Deploy to GitHub Pages
53
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ jobs:
14
14
submodules : true
15
15
16
16
- name : Setup Python 3.10
17
- uses : actions/setup-python@v3
17
+ uses : actions/setup-python@v5
18
18
with :
19
19
python-version : 3.10
20
20
21
21
- name : Setup .NET Core SDK
22
- uses : actions/setup-dotnet@v4.0.0
22
+ uses : actions/setup-dotnet@v4
23
23
with :
24
24
dotnet-version : 8.x
25
-
25
+
26
26
- name : Restore NuGet Packages
27
27
run : dotnet restore Bonsai.ML.sln
28
28
You can’t perform that action at this time.
0 commit comments