Skip to content

Commit

Permalink
Update nuget_plublish.yml and rename build_and_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DrEsteban committed May 18, 2024
1 parent 52c19b1 commit b61d89f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
File renamed without changes.
6 changes: 4 additions & 2 deletions .github/workflows/nuget_publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: NuGet Publish

on:
push:
branches: [ "master" ]
workflow_dispatch:

jobs:
Expand All @@ -21,6 +23,6 @@ jobs:
- name: Publish GitHub
run: |
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUBTOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/DrEsteban/index.json"
dotnet nuget push --api-key ${{ secrets.GITHUBTOKEN }} ./**/Release/*.nupkg --source github
dotnet nuget push --skip-duplicate --api-key ${{ secrets.GITHUBTOKEN }} ./**/Release/*.nupkg --source github
- name: Publish NuGet
run: dotnet nuget push --api-key ${{ secrets.NUGETTOKEN }} ./**/Release/*.nupkg --source https://api.nuget.org/v3/index.json
run: dotnet nuget push --skip-duplicate --api-key ${{ secrets.NUGETTOKEN }} ./**/Release/*.nupkg --source https://api.nuget.org/v3/index.json

0 comments on commit b61d89f

Please sign in to comment.