Skip to content

Commit 8656859

Browse files
committed
Install docfx only on develop
1 parent 0b4197b commit 8656859

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@ jobs:
1717
runs-on: windows-latest
1818
steps:
1919
- uses: actions/checkout@v2
20+
2021
- name: Install DocFX
22+
if: github.ref == 'refs/heads/develop'
2123
run: choco install docfx -y
24+
2225
- name: Build
2326
run: dotnet build src/Advanced.Algorithms.sln
27+
2428
- name: Test
2529
run: dotnet test src/Advanced.Algorithms.sln
30+
2631
- name: Update Documentation
2732
if: github.ref == 'refs/heads/develop'
2833
run: docfx .github/docfx.json
34+
2935
- name: Publish Documentation
3036
if: github.ref == 'refs/heads/develop'
3137
uses: EndBug/add-and-commit@v9
@@ -34,11 +40,13 @@ jobs:
3440
message: Update documentation
3541
committer_name: GitHub Actions
3642
committer_email: [email protected]
43+
3744
- name: Publish Beta
3845
if: github.ref == 'refs/heads/beta'
3946
run: |
4047
dotnet pack src/Advanced.Algorithms/Advanced.Algorithms.csproj --version-suffix "beta"
4148
dotnet nuget push **\*.nupkg -s "nuget" -k "${{ secrets.NUGET_TOKEN }}"
49+
4250
- name: Publish Stable
4351
if: github.ref == 'refs/heads/stable'
4452
run: |

0 commit comments

Comments
 (0)