Skip to content

Commit 70ca215

Browse files
authored
Enable nuget publish step in release (#12)
1 parent db66d29 commit 70ca215

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Publish
5555
if: github.event_name != 'pull_request'
5656
run: dotnet nuget push
57-
${{github.workspace}}/artifacts/packages/*.nupkg
57+
${{github.workspace}}/artifacts/packages/*.*nupkg
5858
--source "github"
5959
--api-key ${{ secrets.GITHUB_TOKEN }}
6060
--skip-duplicate

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Append the nuget package to the github release that triggered this workflow
3535
- name: Upload release asset
3636
run: gh release upload ${{ github.event.release.tag_name }}
37-
${{github.workspace}}/artifacts/packages/*.nupkg
37+
${{github.workspace}}/artifacts/packages/*.*nupkg
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040

@@ -44,9 +44,9 @@ jobs:
4444
name: build-artifacts
4545
path: ${{github.workspace}}/artifacts
4646

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

0 commit comments

Comments
 (0)