Skip to content

Commit 47c717c

Browse files
Initial commit
0 parents  commit 47c717c

File tree

17 files changed

+641
-0
lines changed

17 files changed

+641
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy NuGet Package
2+
3+
env:
4+
PROJECT_PATH: './src/PandaNuGet/PandaNuGet.csproj'
5+
OUTPUT_DIR: 'nupkgs'
6+
NUGET_SOURCE: 'https://api.nuget.org/v3/index.json'
7+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
8+
9+
on:
10+
push:
11+
branches:
12+
- main
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Setup .NET Core
22+
uses: actions/setup-dotnet@v3
23+
with:
24+
global-json-file: global.json
25+
26+
- name: Build
27+
run: dotnet build ${{ env.PROJECT_PATH }}
28+
29+
- name: Pack
30+
run: dotnet pack ${{ env.PROJECT_PATH }} --output ${{ env.OUTPUT_DIR }}
31+
32+
- name: Publish
33+
run: dotnet nuget push ${{ env.OUTPUT_DIR }}/*.nupkg -k ${{ env.NUGET_API_KEY }} -s ${{ env.NUGET_SOURCE }}

0 commit comments

Comments
 (0)