Skip to content

Commit 2b38265

Browse files
committed
publish gh pages
1 parent a5871e7 commit 2b38265

File tree

3 files changed

+58
-27
lines changed

3 files changed

+58
-27
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,26 @@ on: workflow_dispatch
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98

109
defaults:
1110
run:
1211
working-directory: .
1312

1413
steps:
15-
- uses: actions/checkout@v2
16-
- name: Setup .NET 6
17-
uses: actions/setup-dotnet@v1
18-
with:
19-
dotnet-version: 6.x
20-
- name: Setup .NET 7
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: 7.x
24-
- name: nuget publish
25-
env:
26-
nuget_push: ${{ secrets.NUGET_API_KEY }}
27-
run: dotnet fsi build.fsx publish
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup .NET 6
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 6.x
20+
21+
- name: Setup .NET 7
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: 7.x
25+
26+
- name: nuget publish
27+
env:
28+
nuget_push: ${{ secrets.NUGET_API_KEY }}
29+
run: dotnet fsi build.fsx publish
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Docs to GH Pages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Setup dotnet
15+
uses: actions/setup-dotnet@v3
16+
17+
- name: Build / Release
18+
shell: pwsh
19+
run: ./docu.ps1
20+
21+
- name: Upload artifact
22+
uses: actions/upload-pages-artifact@v1
23+
with:
24+
path: ./Docu
25+
26+
27+

.github/workflows/push-master_pull-request.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,24 @@ on:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413

1514
defaults:
1615
run:
1716
working-directory: .
18-
17+
1918
steps:
20-
- uses: actions/checkout@v2
21-
- name: Setup .NET 6
22-
uses: actions/setup-dotnet@v1
23-
with:
24-
dotnet-version: 6.x
25-
- name: Setup .NET 7
26-
uses: actions/setup-dotnet@v1
27-
with:
28-
dotnet-version: 7.x
29-
- name: Run Tests
30-
run: dotnet fsi build.fsx test
19+
- uses: actions/checkout@v2
20+
21+
- name: Setup .NET 6
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: 6.x
25+
26+
- name: Setup .NET 7
27+
uses: actions/setup-dotnet@v1
28+
with:
29+
dotnet-version: 7.x
30+
31+
- name: Run Tests
32+
run: dotnet fsi build.fsx test

0 commit comments

Comments
 (0)