Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 2e7e2fe

Browse files
authored
Publish workflow (#145)
NuGet Publish workflow.
1 parent 6ff691b commit 2e7e2fe

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1-
name: Publish Nuget
2-
on: workflow_dispatch
1+
name: Publish NuGet
2+
on:
3+
workflow_dispatch:
4+
release:
5+
type: [published]
36

47
jobs:
58
package:
69
uses: ./.github/workflows/package.yml
710
secrets: inherit
811

912
publish:
10-
runs-on: macos-latest
13+
runs-on: ubuntu-latest
14+
needs: package
1115
steps:
12-
- name: Download nuget packages
16+
- uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: '6.x'
19+
20+
- name: Download nuget artifact
1321
uses: actions/download-artifact@v3
1422
with:
1523
name: nugets
24+
path: artifacts
1625

26+
- name: Deploy to NuGet 🚀
27+
working-directory: artifacts
28+
run: dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)