File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : FileSystem [Release]
2+
3+ env :
4+ DOTNET_VERSION : 7.0.x
5+ DOTNET_BUILD_CONFIGURATION : Release
6+ DOTNET_PACKAGES_OUTPUT_DIRECTORY : .nuget
7+ NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
8+
9+ on :
10+ push :
11+ tags :
12+ - " [0-9]+.[0-9]+.[0-9]+"
13+ - " [0-9]+.[0-9]+.[0-9]+-alpha[0-9]+"
14+ - " [0-9]+.[0-9]+.[0-9]+-beta[0-9]+"
15+
16+ jobs :
17+ build :
18+ runs-on : windows-latest
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v3
23+ with :
24+ fetch-depth : 0
25+
26+ - name : Setup .NET
27+ uses : actions/setup-dotnet@v3
28+ with :
29+ dotnet-version : ${{ env.DOTNET_VERSION }}
30+
31+ - name : Pack packages
32+ run : dotnet pack --configuration ${{ env.DOTNET_BUILD_CONFIGURATION }} --output "${{ env.DOTNET_PACKAGES_OUTPUT_DIRECTORY }}"
33+
34+ - name : Push packages
35+ run : dotnet nuget push "${{ env.DOTNET_PACKAGES_OUTPUT_DIRECTORY }}/*.nupkg" --api-key ${{ env.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 1- $outputPath = " NuGet "
1+ $outputPath = " .nuget "
22
33New-Item - ItemType Directory - Force $outputPath
44
You can’t perform that action at this time.
0 commit comments