File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,24 +2,31 @@ name: Build
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches :
6+ - " main"
7+ paths-ignore :
8+ - " .*/**"
9+ - " **/*.md"
610 pull_request :
7- branches : [ "main" ]
11+ branches :
12+ - " main"
13+ paths-ignore :
14+ - " .*/**"
15+ - " **/*.md"
816
917 workflow_dispatch :
10-
18+
1119jobs :
1220 build-on-windows :
1321 runs-on : windows-latest
1422
1523 steps :
16-
1724 - uses : actions/checkout@v3
1825
1926 - name : Setup .NET
2027 uses : actions/setup-dotnet@v2
2128 with :
22- dotnet-version : ' 6.0.x'
29+ dotnet-version : " 6.0.x"
2330 include-prerelease : false
2431
2532 - name : Build
@@ -31,13 +38,12 @@ jobs:
3138 runs-on : ubuntu-latest
3239
3340 steps :
34-
3541 - uses : actions/checkout@v3
3642
3743 - name : Setup .NET
3844 uses : actions/setup-dotnet@v2
3945 with :
40- dotnet-version : ' 6.0.x'
46+ dotnet-version : " 6.0.x"
4147 include-prerelease : false
4248
4349 - name : Build
@@ -52,30 +58,26 @@ jobs:
5258 - name : Install NuGet
5359 uses : nuget/setup-nuget@v1
5460 with :
55- nuget-version : ' 6.x'
61+ nuget-version : " 6.x"
5662
5763 - name : Publish Package to GitHub and NuGet
5864 run : |
5965 nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol
6066 nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source github -SkipDuplicate
6167
62-
6368 build-on-macos :
6469 runs-on : macos-latest
6570
6671 steps :
67-
6872 - uses : actions/checkout@v3
6973
7074 - name : Setup .NET
7175 uses : actions/setup-dotnet@v2
7276 with :
73- dotnet-version : ' 6.0.x'
77+ dotnet-version : " 6.0.x"
7478 include-prerelease : false
7579
7680 - name : Build
7781 run : |
7882 cd Common.BasicHelper
7983 dotnet build -c Release
80-
81-
You can’t perform that action at this time.
0 commit comments