Skip to content

Commit 9404cc6

Browse files
committed
Review feedback
1 parent f4a2a73 commit 9404cc6

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -193,26 +193,15 @@ jobs:
193193
194194
- name: Push package to NuGet
195195
if: steps.release_channel.outputs.channel != 'none'
196-
id: push_package
197196
shell: bash
198197
run: |
199-
set -o pipefail
200-
201-
push_output_file="$(mktemp)"
202-
203198
dotnet nuget push "/tmp/artifacts/blazor-hashrouting/package/release/Blazor.HashRouting.${VERSION}.nupkg" \
204199
--api-key "${{ secrets.NUGET_API_KEY }}" \
205200
--source "https://api.nuget.org/v3/index.json" \
206-
--skip-duplicate 2>&1 | tee "${push_output_file}"
207-
208-
if grep -qi "already exists" "${push_output_file}"; then
209-
echo "pushed=false" >> $GITHUB_OUTPUT
210-
else
211-
echo "pushed=true" >> $GITHUB_OUTPUT
212-
fi
201+
--skip-duplicate
213202
214203
- name: Push symbols to NuGet
215-
if: steps.release_channel.outputs.channel != 'none' && steps.push_package.outputs.pushed == 'true'
204+
if: steps.release_channel.outputs.channel != 'none'
216205
shell: bash
217206
run: |
218207
dotnet nuget push "/tmp/artifacts/blazor-hashrouting/package/release/Blazor.HashRouting.${VERSION}.snupkg" \

0 commit comments

Comments
 (0)