Skip to content

Commit 10d57fa

Browse files
authored
Update main.yml
1 parent cd17f88 commit 10d57fa

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,8 @@ jobs:
234234
dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=main -p:ContinuousIntegrationBuild=true /p:PublicRelease=true
235235
236236
- name: Push packages to GitHub Package Registry
237-
run: |
238-
for f in ${GITHUB_WORKSPACE}/packages/*.nupkg
239-
do
240-
curl -vX PUT -u "egil:${{ secrets.GITHUB_TOKEN }}" -F package=@$f https://nuget.pkg.github.com/egil/
241-
done
242-
shell: bash
237+
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/OWNER/index.json --skip-duplicate --no-symbols true
243238

244239
- name: Push packages to NuGet
245240
if: github.event_name == 'release'
246241
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols true
247-
248-
# - name: Push packages to GitHub Package Registry
249-
# run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' --skip-duplicate

0 commit comments

Comments
 (0)