Skip to content

Commit

Permalink
Changed the ci to only publish on a release
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronMayne committed May 13, 2024
1 parent f8a5865 commit bfd8424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Publish
on:
release:
types: [published]
push: {}
pull_request: {}

env:
Expand Down Expand Up @@ -40,4 +39,5 @@ jobs:
run: dotnet pack src\SourceGenerator.Foundations\SourceGenerator.Foundations.csproj -p:Version=${{env.GitVersion_AssemblySemVer}} -p:PackageVersion=${{env.GitVersion_FullSemVer}}
# -- Release Only --
- name: Push NuGet
if: github.event_name == 'release'
run: dotnet nuget push ${{env.ProjectDir}}bin\${{env.Configuration}}\*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 comments on commit bfd8424

Please sign in to comment.