Skip to content

Commit 3365282

Browse files
committed
Added publish nuget step
1 parent 35ad0fe commit 3365282

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publishNuget.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Publish Nuget
2-
run-name: ${{ github.actor }} is updating dev.im-booth.com Frontend🚀
2+
run-name: ${{ github.actor }} is updating ${{ github.repository }}🚀
33
on:
44
push:
55
branches:
@@ -22,10 +22,16 @@ jobs:
2222
- name: Upload
2323
uses: actions/upload-artifact@v4
2424
with:
25-
name: nuget
25+
name: ${{ github.repository }}
2626
if-no-files-found: error
2727
retention-days: 7
2828
path: pack/*.nupkg
29+
30+
- name: Publish Nuget
31+
run: |
32+
foreach($file in (Get-ChildItem pack/ -Recurse -Include *.nupkg)) {
33+
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
34+
}
2935
3036
- uses: sarisia/actions-status-discord@v1
3137
if: always()

0 commit comments

Comments
 (0)