File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11name : publish
2- # This workflow is triggered when tagging
32
43on :
54 workflow_dispatch :
@@ -29,13 +28,13 @@ jobs:
2928 3.1.x
3029 2.1.x
3130
32- - name : Setup
33- run : mkdir -p ${{ runner.temp }}/nuget-local-feed
31+ - name : Build Package
32+ run : dotnet pack --output nupkgs --include-source --include-symbols --configuration Release
3433
35- - name : Build
36- run : dotnet build --configuration Release
34+ - name : Publish Package
35+ run : dotnet nuget push nupkgs/*.nupkg --source $NUGET_SOURCE_URL --api-key $GITHUB_TOKEN
3736 env :
38- NUGET_LOCAL_FEED_PATH : ${{ runner.temp }}/nuget-local-feed
39-
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ NUGET_SOURCE_URL : https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
4039
4140
Original file line number Diff line number Diff line change 22obj /
33dotnet-install.sh
44build
5- # Ignore NuGet Packages
6- * .nupkg
75.tox
86Deployment
7+ # Ignore NuGet Packages
8+ nupkgs /
9+ * .nupkg
10+ * .snupkg
Original file line number Diff line number Diff line change 5353
5454 <Exec
5555 Command =" dotnet nuget push \
56- " $(MSBuildThisFileDirectory)../Deployment/nuget-packages/*.nupkg" --source " local-feed " "
56+ " $(MSBuildThisFileDirectory)../Deployment/nuget-packages/*.nupkg" --source " $(NUGET_LOCAL_FEED_PATH) " "
5757 WorkingDirectory =" $(MSBuildProjectDirectory)"
5858 StdOutEncoding =" utf-8" />
5959 </Target >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments