Skip to content

Commit d277ffa

Browse files
committed
Update publish.yml
Publish yml error
1 parent d988ed3 commit d277ffa

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ jobs:
5959
VERSION=${{ steps.set-version.outputs.version }}
6060
dotnet pack src/${{ github.event.repository.name }}.csproj \
6161
--configuration Release \
62-
--no-build \
63-
--skip-duplicate \
62+
--no-build \
6463
-p:PackageVersion=$VERSION \
6564
-p:IncludeSymbols=true \
6665
-p:SymbolPackageFormat=snupkg
@@ -74,12 +73,14 @@ jobs:
7473
echo "Pushing main package: $pkg"
7574
dotnet nuget push "$pkg" \
7675
--api-key "${{ secrets.NUGET_API_KEY }}" \
77-
--source https://api.nuget.org/v3/index.json
76+
--source https://api.nuget.org/v3/index.json \
77+
--skip-duplicate
7878
done
7979
8080
for symbols in $(find src/bin/Release -name "*.snupkg"); do
8181
echo "Pushing symbol package: $symbols"
8282
dotnet nuget push "$symbols" \
8383
--api-key "${{ secrets.NUGET_API_KEY }}" \
84-
--source https://api.nuget.org/v3/index.json
84+
--source https://api.nuget.org/v3/index.json \
85+
--skip-duplicate
8586
done

0 commit comments

Comments
 (0)