diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml
index 60126bd..7e594cc 100644
--- a/.github/workflows/build-and-deploy.yml
+++ b/.github/workflows/build-and-deploy.yml
@@ -8,8 +8,8 @@ on:
- master
env:
APP_NAME: DynamicExpression
- VERSION: 9.0.2
- NUGET_HOST: https://www.nuget.org
+ VERSION: 9.0.3
+ NUGET_HOST: https://api.nuget.org/v3/index.json
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
jobs:
build-and-deploy:
@@ -52,8 +52,12 @@ jobs:
if: github.ref == 'refs/heads/master'
shell: pwsh
run: |
- dotnet nuget push nupkgs/$env:APP_NAME"."$env:VERSION.nupkg -s $env:NUGET_HOST -k $env:NUGET_APIKEY
- dotnet nuget push nupkgs/$env:APP_NAME"."$env:VERSION.snupkg -s $env:NUGET_HOST -k $env:NUGET_APIKEY
+ dotnet nuget push "nupkgs/*.nupkg" -s $env:NUGET_HOST -k $env:NUGET_APIKEY --skip-duplicate
+
+ if ($LastExitCode -ne 0)
+ {
+ throw "Publish failed";
+ };
- name: GitHub Release
if: github.ref == 'refs/heads/master'
diff --git a/DynamicExpression/DynamicExpression.csproj b/DynamicExpression/DynamicExpression.csproj
index 9708f32..f0e8302 100644
--- a/DynamicExpression/DynamicExpression.csproj
+++ b/DynamicExpression/DynamicExpression.csproj
@@ -3,9 +3,9 @@
net9.0
true
AnyCPU
- 9.0.2.0
- 9.0.2.0
- 9.0.2.0
+ 9.0.3.0
+ 9.0.3.0
+ 9.0.3.0
latest
Michael Vivet
Dynamic Expression