77 branches : master
88
99env :
10- TOKEN : ${{ secrets.TOKEN }}
1110 NUGETTOKEN : ${{ secrets.NUGETTOKEN }}
1211 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1312 SCRIPTS_BASE_URL : https://raw.githubusercontent.com/linksplatform/Scripts/master/MultiProjectRepository
@@ -19,45 +18,45 @@ jobs:
1918 - uses : actions/checkout@v1
2019 - name : Test
2120 run : dotnet test -c Release -f netcoreapp3.0
22- - name : Generate PDF with code
21+ - name : Generate PDF with CSharp code
2322 if : github.event_name == 'push'
2423 run : |
2524 export REPOSITORY_NAME=$(basename ${{ github.repository }})
2625 wget "$SCRIPTS_BASE_URL/format-csharp-files.py"
27- wget "$SCRIPTS_BASE_URL/format-document.sh"
28- wget "$SCRIPTS_BASE_URL/generate-pdf.sh"
29- bash ./generate-pdf.sh
30- - name : Publish documentation to gh-pages branch
26+ wget "$SCRIPTS_BASE_URL/format-csharp- document.sh"
27+ wget "$SCRIPTS_BASE_URL/generate-csharp- pdf.sh"
28+ bash ./generate-csharp- pdf.sh
29+ - name : Publish CSharp documentation to gh-pages branch
3130 if : github.event_name == 'push'
3231 run : |
3332 export REPOSITORY_NAME=$(basename ${{ github.repository }})
3433 wget "$SCRIPTS_BASE_URL/docfx.json"
3534 wget "$SCRIPTS_BASE_URL/filter.yml"
3635 wget "$SCRIPTS_BASE_URL/toc.yml"
37- wget "$SCRIPTS_BASE_URL/publish-docs.sh"
38- bash ./publish-docs.sh
39- - name : Publish NuGet package
36+ wget "$SCRIPTS_BASE_URL/publish-csharp- docs.sh"
37+ bash ./publish-csharp- docs.sh
38+ - name : Publish CSharp NuGet package
4039 if : github.event_name == 'push'
4140 run : |
4241 export REPOSITORY_NAME=$(basename ${{ github.repository }})
43- wget "$SCRIPTS_BASE_URL/push-nuget.sh"
44- bash ./push-nuget.sh
42+ wget "$SCRIPTS_BASE_URL/push-csharp- nuget.sh"
43+ bash ./push-csharp- nuget.sh
4544 - name : Publish release
4645 if : github.event_name == 'push'
4746 run : |
4847 export REPOSITORY_NAME=$(basename ${{ github.repository }})
4948 wget "$SCRIPTS_BASE_URL/publish-release.sh"
5049 bash ./publish-release.sh
51-
52- pushNuGetToGitHubPackageRegistry :
50+ pushCSharpNuGetToGitHubPackageRegistry :
5351 needs : testAndDeploy
5452 if : github.event_name == 'push'
5553 runs-on : windows-latest
5654 steps :
5755 - uses : actions/checkout@v1
5856 - uses : warrenbuckley/Setup-Nuget@v1
59- - name : Publish to GitHub Package Registry
57+ - name : Publish CSharp NuGet to GitHub Package Registry
6058 run : |
59+ dotnet build -c Release
6160 dotnet pack -c Release
6261 nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/linksplatform/index.json" -UserName linksplatform -Password ${{ secrets.GITHUB_TOKEN }}
6362 nuget push **/*.nupkg -Source "GitHub" -SkipDuplicate
0 commit comments