Skip to content

Commit 7fe2c2f

Browse files
committed
Create publish.yml
1 parent 3b87e1c commit 7fe2c2f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- release
7+
push:
8+
branches:
9+
- release
10+
11+
jobs:
12+
13+
publish:
14+
runs-on: windows-latest
15+
strategy:
16+
matrix:
17+
dotnet: ['3.1.x', '5.0.x','6.0.x']
18+
19+
steps:
20+
21+
- name: Release Dll
22+
run : dotnet build -c Release
23+
24+
- name: Pack - Env
25+
run: dotnet pack --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release DotNetCore.Compile.Environment/DotNetCore.Compile.Environment.csproj -o .
26+
27+
- name: Push to Nuget - Env
28+
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)