File tree Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release to NuGet
2
+
3
+ on :
4
+ release :
5
+ types : [published]
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 : 5.0.x
18
+
19
+ - name : Restore dependencies
20
+ run : dotnet restore
21
+
22
+ - name : Build
23
+ run : dotnet build --no-restore
24
+
25
+ - name : Test
26
+ run : dotnet test --no-build --verbosity normal
27
+
28
+ - name : Create NuGet Package
29
+ run : dotnet pack -c Release /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/notion-dotnet/notion-sdk-net/releases/tag/${{ github.event.release.tag_name }}"
30
+ working-directory : ./
31
+
32
+ - name : Archive NuGet Package
33
+ uses : actions/upload-artifact@v1
34
+ with :
35
+ name : Notion.Net
36
+ path : ./Src/Notion.Client/bin/Release/Notion.Net.${{ github.event.release.tag_name }}.nupkg
37
+
38
+ - name : Publish Nuget Package
39
+ run : dotnet nuget push **/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json --no-symbols true
File renamed without changes.
Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<TargetFramework >netstandard2.0</TargetFramework >
5
5
<LangVersion >7.3</LangVersion >
6
+
7
+ <PackageId >Notion.Net</PackageId >
8
+ <Authors >Vedant Koditkar</Authors >
9
+ <Description >A Notion API dotnet client</Description >
10
+ <RepositoryUrl >https://github.com/notion-dotnet/notion-sdk-net</RepositoryUrl >
11
+ <PackageTags >notion;client;api;json;sdk;notion.net</PackageTags >
12
+ <PackageIcon >notion-logo.png</PackageIcon >
13
+ <PackageLicenseFile >LICENSE.md</PackageLicenseFile >
6
14
</PropertyGroup >
7
15
8
16
<ItemGroup >
9
17
<PackageReference Include =" Newtonsoft.Json" Version =" 13.0.1" />
10
18
</ItemGroup >
11
19
20
+ <ItemGroup >
21
+ <None Include =" ..\..\assets\notion-logo.png" >
22
+ <Pack >True</Pack >
23
+ <PackagePath ></PackagePath >
24
+ </None >
25
+ <None Include =" ..\..\LICENSE.md" >
26
+ <Pack >True</Pack >
27
+ <PackagePath ></PackagePath >
28
+ </None >
29
+ </ItemGroup >
30
+
12
31
</Project >
You can’t perform that action at this time.
0 commit comments