Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 68483b7

Browse files
authored
Nuget pipeline creation
1 parent 2ef239c commit 68483b7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: DataTables.Net Nuget Package Push
2+
3+
on:
4+
push:
5+
branches: [ v3 ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: 6.0.0
18+
- name: Restore dependencies
19+
run: dotnet restore
20+
- name: Build
21+
run: dotnet build --no-restore
22+
- name: Test
23+
run: dotnet test --no-build --verbosity normal
24+
- name: Nuget pack
25+
run: dotnet pack src/DataTables.AspNet.Core/DataTables.AspNet.Core.csproj --output nuget-packages --configuration Debug
26+
- name: Nuget push
27+
run: dotnet nuget push nuget-packages/*.nupkg --api-key %{{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)