Skip to content

Commit 64cba37

Browse files
authored
Create dotnet.yml
1 parent e8d8697 commit 64cba37

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Milvasoft.ExpressionBuilder Nuget Publish
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'ExpressionBuilder/**'
8+
pull_request:
9+
branches: [ master ]
10+
paths:
11+
- 'ExpressionBuilder/**'
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: 8.0.x
23+
- name: Restore Milvasoft.ExpressionBuilder project dependencies
24+
run: dotnet restore ExpressionBuilder/ExpressionBuilder.csproj
25+
- name: Build Milvasoft.ExpressionBuilder project
26+
run: dotnet build ExpressionBuilder/ExpressionBuilder.csproj --no-restore --configuration Release
27+
- name: Pack Milvasoft.ExpressionBuilder project
28+
run: dotnet pack ExpressionBuilder/ExpressionBuilder.csproj --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -o .
29+
- name: Publish Milvasoft.ExpressionBuilder package to NuGet
30+
run: dotnet nuget push *.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source "https://api.nuget.org/v3/index.json" --skip-duplicate

0 commit comments

Comments
 (0)