Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

action publish nuget package #500

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,14 @@ jobs:
- name: Build and pack
run: >-
dotnet pack ./src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj --nologo -c Release -o .
-p:Version=${{ needs.determineVersionNumber.outputs.version }}
-p:Version=${{ needs.determineVersionNumber.outputs.version }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
-p:ContinuousIntegrationBuild=true

- name: publish the NuGetForUnity.Cli NuGet package
if: github.ref_type == 'tag'
run: >-
dotnet nuget push .\NuGetForUnity.Cli.${{ needs.determineVersionNumber.outputs.version }}.nupkg --api-key ${{secrets.NUGET_API_TOKEN}}
--source https://api.nuget.org/v3/index.json

- name: Upload NuGetForUnity.Cli NuGet package
uses: actions/upload-artifact@v3
Expand Down