diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index a91b6fe..2a4fcb2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -1,9 +1,9 @@ name: CI/CD with Auto Versioning on: - workflow_dispatch: -# push: -# branches: [ master ] + workflow_dispatch: # Manual trigger + release: + types: [published] # Trigger on published releases jobs: get_version: @@ -59,7 +59,7 @@ jobs: with: name: nuget-packages path: nupkg -# - name: Push to NuGet.org -# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate -# - name: Push to GitHub Packages -# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate + - name: Push to NuGet.org + run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate + - name: Push to GitHub Packages + run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate