File tree Expand file tree Collapse file tree 2 files changed +39
-10
lines changed Expand file tree Collapse file tree 2 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 9
9
- main
10
10
workflow_dispatch :
11
11
12
+ env :
13
+ FSHARP_DIR : fsharp
14
+ FSF_DIR : FSharp.Formatting
15
+
16
+
12
17
jobs :
13
18
build :
14
19
strategy :
@@ -27,15 +32,25 @@ jobs:
27
32
- name : Restore projects
28
33
run : dotnet restore FSharp.Core\FSharp.Core.fsproj
29
34
- name : Checkout fsharp main
30
- run : git clone https://github.com/dotnet/fsharp --depth 1 fsharp -b main
35
+ uses : actions/checkout@v3
36
+ with :
37
+ repository : dotnet/fsharp
38
+ path : ${{ env.FSHARP_DIR }}
39
+ ref : main
31
40
- name : Build fsharp main (turn of CI build status)
32
- run : cd fsharp && eng\CIBuild.cmd -noVisualStudio
41
+ run : eng\CIBuild.cmd -noVisualStudio
42
+ working-directory : ${{ env.FSHARP_DIR }}
33
43
- name : Checkout FSharp.Formatting main
34
- run : git clone https://github.com/fsprojects/FSharp.Formatting --depth 1 FSharp.Formatting
44
+ uses : actions/checkout@v3
45
+ with :
46
+ repository : fsprojects/FSharp.Formatting
47
+ path : ${{ env.FSF_DIR }}
48
+ ref : main
35
49
- name : Build FSharp.Formatting main
36
- run : cd FSharp.Formatting && .\build -t Build
50
+ run : .\build -t Build
51
+ working-directory : ${{ env.FSF_DIR }}
37
52
- name : Run fsdocs
38
- run : dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net7.0\fsdocs.dll build --sourcefolder fsharp
53
+ run : dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net7.0\fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}
39
54
- name : Deploy
40
55
uses : peaceiris/actions-gh-pages@v3
41
56
with :
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- " **"
7
7
8
+ env :
9
+ FSHARP_DIR : fsharp
10
+ FSF_DIR : FSharp.Formatting
11
+
8
12
jobs :
9
13
build :
10
14
strategy :
@@ -23,12 +27,22 @@ jobs:
23
27
- name : Restore projects
24
28
run : dotnet restore FSharp.Core\FSharp.Core.fsproj
25
29
- name : Checkout fsharp main
26
- run : git clone https://github.com/dotnet/fsharp --depth 1 fsharp -b main
30
+ uses : actions/checkout@v3
31
+ with :
32
+ repository : dotnet/fsharp
33
+ path : ${{ env.FSHARP_DIR }}
34
+ ref : main
27
35
- name : Build fsharp main (turn of CI build status)
28
- run : cd fsharp && eng\CIBuild.cmd -noVisualStudio
36
+ run : eng\CIBuild.cmd -noVisualStudio
37
+ working-directory : ${{ env.FSHARP_DIR }}
29
38
- name : Checkout FSharp.Formatting main
30
- run : git clone https://github.com/fsprojects/FSharp.Formatting --depth 1 FSharp.Formatting
39
+ uses : actions/checkout@v3
40
+ with :
41
+ repository : fsprojects/FSharp.Formatting
42
+ path : ${{ env.FSF_DIR }}
43
+ ref : main
31
44
- name : Build FSharp.Formatting main
32
- run : cd FSharp.Formatting && .\build -t Build
45
+ run : .\build -t Build
46
+ working-directory : ${{ env.FSF_DIR }}
33
47
- name : Run fsdocs
34
- run : dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net7.0\fsdocs.dll build --sourcefolder fsharp
48
+ run : dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net7.0\fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}
You can’t perform that action at this time.
0 commit comments