Skip to content

Commit

Permalink
Updated github workflow publish.yml to set -p:Version on dotnet build
Browse files Browse the repository at this point in the history
  • Loading branch information
gonace committed Jan 20, 2024
1 parent 599ad23 commit 351ef7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
with:
dotnet-version: 6.0.x
- run: dotnet restore
- run: dotnet build --configuration Release Intercom/Intercom.csproj
- run: dotnet build --configuration Release Intercom/Intercom.csproj -p:Version=${{vars.VERSION}}.${{github.run_number}}
- run: dotnet pack --configuration Release Intercom/Intercom.csproj --no-build -p:Version=${{vars.VERSION}}.${{github.run_number}}-alpha -p:PackageVersion=${{vars.VERSION}}.${{github.run_number}}-alpha -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:NuspecFile=Intercom.nuspec
- run: dotnet nuget push Intercom/bin/Release/Intercom-NET.${{vars.VERSION}}.${{github.run_number}}-alpha.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 351ef7f

Please sign in to comment.