Skip to content

Commit f0950d2

Browse files
authored
Create publish
1 parent fe44321 commit f0950d2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Package to GitHub Packages
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Setup .NET Core
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: '9.x'
19+
20+
- name: Install dependencies
21+
run: dotnet restore
22+
23+
- name: Publish NuGet package
24+
run: dotnet pack -c Release
25+
26+
- name: Push package to GitHub Packages
27+
run: dotnet nuget push **/*.nupkg -s https://nuget.pkg.github.com/PSCourtney/index.json -k ${{ secrets.PAT_TOKEN }}

0 commit comments

Comments
 (0)