Skip to content

Commit b32b22a

Browse files
authored
Initial commit
0 parents  commit b32b22a

File tree

11 files changed

+549
-0
lines changed

11 files changed

+549
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
strategy:
17+
matrix:
18+
dotnet-version: [ '8.x.x' ]
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Setup .NET Core
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: ${{ matrix.dotnet-version }}
27+
28+
- name: Build
29+
run: dotnet build ${{ env.PROJECT_PATH }}
30+
31+
- name: Pack
32+
run: dotnet pack ${{ env.PROJECT_PATH }} --output ${{ env.OUTPUT_DIR }}
33+
34+
- name: Publish
35+
run: dotnet nuget push ${{ env.OUTPUT_DIR }}/*.nupkg -k ${{ env.NUGET_API_KEY }} -s ${{ env.NUGET_SOURCE }}

0 commit comments

Comments
 (0)