Skip to content

Commit

Permalink
chore(repo): ensure deploy action only runs when merging to master, a…
Browse files Browse the repository at this point in the history
…dd in nuget pub step
  • Loading branch information
AJCJ1 committed Jan 22, 2025
1 parent ab45e03 commit b6fe558
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy_to_nuget.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Deploy to NuGet

on:
workflow_dispatch:
push:
branches:
- master
- iss-1

permissions:
contents: write
Expand Down Expand Up @@ -65,7 +63,7 @@ jobs:
- name: Pack NuGet package
run: dotnet pack --configuration Release --no-build --output ./package

# # Push the NuGet package to NuGet.org
# - name: Publish to NuGet
# run: dotnet nuget push "./package/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
# Push the NuGet package to NuGet.org
- name: Publish to NuGet
run: dotnet nuget push "./package/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit b6fe558

Please sign in to comment.