Skip to content

Commit

Permalink
feat(repo): add in push to nuget
Browse files Browse the repository at this point in the history
chore(repo): change on push syntax to match other repos
  • Loading branch information
AJCJ1 authored and cjroebuck committed Jan 21, 2025
1 parent 7bb4b5c commit 881a40c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy_to_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Deploy to NuGet

on:
push:
tags:
- '*'
tags: ["*"]

jobs:
deploy:
Expand Down Expand Up @@ -33,10 +32,10 @@ jobs:
- name: Build the project
run: dotnet build ./UrlboxSDK --configuration Release --no-restore

# Pack the NuGet package
# Pack the NuGet package somewhere unique
- 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
- 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 881a40c

Please sign in to comment.