File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,21 @@ jobs:
17
17
runs-on : windows-latest
18
18
steps :
19
19
- uses : actions/checkout@v2
20
+
20
21
- name : Install DocFX
22
+ if : github.ref == 'refs/heads/develop'
21
23
run : choco install docfx -y
24
+
22
25
- name : Build
23
26
run : dotnet build src/Advanced.Algorithms.sln
27
+
24
28
- name : Test
25
29
run : dotnet test src/Advanced.Algorithms.sln
30
+
26
31
- name : Update Documentation
27
32
if : github.ref == 'refs/heads/develop'
28
33
run : docfx .github/docfx.json
34
+
29
35
- name : Publish Documentation
30
36
if : github.ref == 'refs/heads/develop'
31
37
uses : EndBug/add-and-commit@v9
@@ -34,11 +40,13 @@ jobs:
34
40
message : Update documentation
35
41
committer_name : GitHub Actions
36
42
committer_email :
[email protected]
43
+
37
44
- name : Publish Beta
38
45
if : github.ref == 'refs/heads/beta'
39
46
run : |
40
47
dotnet pack src/Advanced.Algorithms/Advanced.Algorithms.csproj --version-suffix "beta"
41
48
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"
49
+
42
50
- name : Publish Stable
43
51
if : github.ref == 'refs/heads/stable'
44
52
run : |
You can’t perform that action at this time.
0 commit comments