Skip to content

Commit

Permalink
Enable nuget publish step in release (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard authored Jun 6, 2024
1 parent db66d29 commit 70ca215
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Publish
if: github.event_name != 'pull_request'
run: dotnet nuget push
${{github.workspace}}/artifacts/packages/*.nupkg
${{github.workspace}}/artifacts/packages/*.*nupkg
--source "github"
--api-key ${{ secrets.GITHUB_TOKEN }}
--skip-duplicate
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# Append the nuget package to the github release that triggered this workflow
- name: Upload release asset
run: gh release upload ${{ github.event.release.tag_name }}
${{github.workspace}}/artifacts/packages/*.nupkg
${{github.workspace}}/artifacts/packages/*.*nupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -44,9 +44,9 @@ jobs:
name: build-artifacts
path: ${{github.workspace}}/artifacts

# - name: Publish
# run: dotnet nuget push
# ${{github.workspace}}/artifacts/packages/*.nupkg
# --source https://api.nuget.org/v3/index.json
# --api-key ${{ secrets.NUGET_API_KEY }}
# --skip-duplicate
- name: Publish
run: dotnet nuget push
${{github.workspace}}/artifacts/packages/*.*nupkg
--source https://api.nuget.org/v3/index.json
--api-key ${{ secrets.NUGET_API_KEY }}
--skip-duplicate

0 comments on commit 70ca215

Please sign in to comment.