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 4aa731c commit d4fb286
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 @@ -30,6 +30,6 @@ jobs:
with:
dotnet-version: 8.0.x
- run: dotnet restore
- run: dotnet build --configuration Release Cronitor/Cronitor.csproj
- run: dotnet build --configuration Release Cronitor/Cronitor.csproj -p:Version=${{vars.VERSION}}.${{github.run_number}}
- run: dotnet pack --configuration Release Cronitor/Cronitor.csproj --no-build -p:Version=${{vars.VERSION}}.${{github.run_number}} -p:PackageVersion=${{vars.VERSION}}.${{github.run_number}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:NuspecFile=Cronitor.nuspec
- run: dotnet nuget push Cronitor/bin/Release/Cronitor.${{vars.VERSION}}.${{github.run_number}}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit d4fb286

Please sign in to comment.