File tree Expand file tree Collapse file tree 4 files changed +54
-90
lines changed Expand file tree Collapse file tree 4 files changed +54
-90
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a .NET project
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3
+
4
+ name : Build and Test
5
+
6
+ on :
7
+ push :
8
+ branches : [ "develop", "master" ]
9
+ pull_request :
10
+ branches : [ "develop", "master" ]
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : windows-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ - name : Setup .NET
20
+ uses : actions/setup-dotnet@v3
21
+ with :
22
+ dotnet-version : 6.0.x
23
+ - name : Restore dependencies
24
+ run : dotnet restore
25
+ - name : Build
26
+ run : dotnet build -c Release --no-restore
27
+ - name : Test
28
+ run : dotnet test -c Release --no-build --verbosity normal
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags : any
6
+
7
+ jobs :
8
+ publish :
9
+
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Setup .NET
15
+ uses : actions/setup-dotnet@v3
16
+ with :
17
+ dotnet-version : 6.0.x
18
+ - name : Restore dependencies
19
+ run : dotnet restore
20
+ - name : Build
21
+ run : dotnet build -c Release --no-restore /p:PackageVersion=${{ github.ref_name }}
22
+ - name : Publish NuGet
23
+ run : dotnet nuget push **.nupkg -k ${NUGET_TOKEN} --skip-duplicate
24
+ env :
25
+ NUGET_TOKEN : ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 1
1
# ClosedXML.Report
2
- [ ![ Build status] ( https://ci.appveyor. com/api/projects/status/y2ha69ggalbj1y47/branch/develop?svg=true )] ( https://ci.appveyor.com/project/ClosedXML/closedxml-report/ branch/ develop/artifacts )
2
+ [ ![ Build status] ( https://github. com/ClosedXML/ClosedXML.Report/actions/workflows/build.yml/badge.svg? branch= develop )
3
3
[ ![ Open Source Helpers] ( https://www.codetriage.com/closedxml/closedxml.report/badges/users.svg )] ( https://www.codetriage.com/closedxml/closedxml.report )
4
4
[ ![ NuGet Badge] ( https://buildstats.info/nuget/ClosedXML.Report )] ( https://www.nuget.org/packages/ClosedXML.Report/ )
5
5
[ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square )] ( #contributors )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments