Skip to content

Commit 07b9ef8

Browse files
committed
Update publish.yml
Updating the publish workflow file
1 parent 0bf7de3 commit 07b9ef8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
build:
10+
build-and-test:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
@@ -57,7 +57,6 @@ jobs:
5757
dotnet pack src/${{ github.event.repository.name }}.csproj \
5858
--configuration Release \
5959
--no-build \
60-
--skip-duplicate \
6160
-p:PackageVersion=$VERSION \
6261
-p:IncludeSymbols=true \
6362
-p:SymbolPackageFormat=snupkg
@@ -71,12 +70,14 @@ jobs:
7170
echo "Pushing main package: $pkg"
7271
dotnet nuget push "$pkg" \
7372
--api-key "${{ secrets.NUGET_API_KEY }}" \
74-
--source https://api.nuget.org/v3/index.json
73+
--source https://api.nuget.org/v3/index.json \
74+
--skip-duplicate
7575
done
7676
7777
for symbols in $(find src/bin/Release -name "*.snupkg"); do
7878
echo "Pushing symbol package: $symbols"
7979
dotnet nuget push "$symbols" \
8080
--api-key "${{ secrets.NUGET_API_KEY }}" \
81-
--source https://api.nuget.org/v3/index.json
81+
--source https://api.nuget.org/v3/index.json \
82+
--skip-duplicate
8283
done

0 commit comments

Comments
 (0)