File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build, Test, and Publish to NuGet for package Jfw.SDK
2+
3+ on :
4+ pull_request :
5+ branches : [ "main" ]
6+ release :
7+ types : [ published ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Setup .NET 6
19+ uses : actions/setup-dotnet@v4
20+ with :
21+ dotnet-version : 6.0.x
22+
23+ - name : Restore dependencies
24+ run : dotnet restore src/JFW.Sdk/JFW.Sdk.csproj
25+
26+ - name : Build project
27+ run : dotnet build JFW.Sdk/JFW.Sdk.csproj --configuration Release --no-restore
28+
29+ # #- name: Run tests
30+ # # run: dotnet test JFW.Sdk.Tests/JFW.Sdk.Tests.csproj --no-build --verbosity normal
31+
32+ - name : Pack NuGet package
33+ run : dotnet pack JFW.Sdk/JFW.Sdk.csproj --configuration Release --no-build -o ./artifacts
34+
35+ - name : Publish to NuGet
36+ if : github.event_name == 'release'
37+ run : dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
Original file line number Diff line number Diff line change 55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77 <GenerateDocumentationFile >true</GenerateDocumentationFile >
8+ <PackageId >JFW.Sdk</PackageId >
9+ <Authors >1Byte Software Pte., Ltd</Authors >
10+ <Company >1Byte Software Pte., Ltd</Company >
11+ <AssemblyTitle >Official .NET SDK for the Jframework API</AssemblyTitle >
12+ <Description >Official .NET SDK for the Jframework API</Description >
13+ <Copyright >Copyright © 2021 - $([System.DateTime]::UtcNow.Year) Jframework</Copyright >
14+ <RootNamespace >JFW.Sdk</RootNamespace >
15+ <Version >1.0.0</Version >
16+ <PackageLicenseFile >LICENSE</PackageLicenseFile >
17+ <RepositoryUrl >https://github.com/1Byte-Software/jfw-sdk-dotnet.git</RepositoryUrl >
18+ <RepositoryType >git</RepositoryType >
819 </PropertyGroup >
920
1021 <ItemGroup >
You can’t perform that action at this time.
0 commit comments