File tree 5 files changed +37
-23
lines changed
5 files changed +37
-23
lines changed Original file line number Diff line number Diff line change 67
67
package :
68
68
name : Create package
69
69
needs : build
70
- runs-on : windows-2019
70
+ runs-on : unbuntu-24.04
71
71
env :
72
72
DOTNET_NOLOGO : true
73
73
steps :
@@ -78,20 +78,15 @@ jobs:
78
78
- name : Setup .NET SDK
79
79
80
80
with :
81
- dotnet-version : 8.0.x
82
- - name : Install MinVer
83
- run : dotnet tool install --global minver-cli
84
- - name : Run MinVer
85
- id : minver
86
- run : echo "version=$(minver)" >> $env:GITHUB_OUTPUT
81
+ dotnet-version : 9.0.x
87
82
- name : Download artifacts
88
83
89
84
with :
90
85
path : nuget.package/runtimes/
91
86
- name : Create package
92
- run : ./nuget.exe Pack nuget.package/NativeBinaries.nuspec -Version ${{ steps.minver.outputs.version }} -NoPackageAnalysis
87
+ run : dotnet pack nuget.package
93
88
- name : Upload NuGet package
94
89
95
90
with :
96
91
name : NuGet package
97
- path : ./*.nupkg
92
+ path : ./nuget.package/ *.nupkg
Original file line number Diff line number Diff line change 4
4
* .dylib
5
5
* .so
6
6
* .zip
7
+
8
+ bin /
9
+ obj /
10
+ .vs /
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
3
+ <PropertyGroup >
4
+ <TargetFramework >netstandard2.0</TargetFramework >
5
+ <NoBuild >true</NoBuild >
6
+ <IncludeBuildOutput >false</IncludeBuildOutput >
7
+ <SuppressDependenciesWhenPacking >true</SuppressDependenciesWhenPacking >
8
+ <Authors >LibGit2Sharp contributors</Authors >
9
+ <PackageLicenseFile >libgit2\libgit2.license.txt</PackageLicenseFile >
10
+ <PackageProjectUrl >https://github.com/libgit2/libgit2sharp.nativebinaries</PackageProjectUrl >
11
+ <PackageIcon >libgit2\libgit2.png</PackageIcon >
12
+ <Description >Native binaries for LibGit2Sharp</Description >
13
+ <PublishRepositoryUrl >true</PublishRepositoryUrl >
14
+ <PackageOutputPath >$(MSBuildThisFileDirectory)</PackageOutputPath >
15
+ <NoWarn >$(NoWarn);NU5127</NoWarn >
16
+ </PropertyGroup >
17
+
18
+ <ItemGroup >
19
+ <PackageReference Include =" MinVer" Version =" 6.0.0" PrivateAssets =" all" />
20
+ </ItemGroup >
21
+
22
+ <ItemGroup >
23
+ <None Update =" build\**\*" Pack =" true" PackagePath =" " />
24
+ <None Update =" buildMultiTargeting\**\*" Pack =" true" PackagePath =" " />
25
+ <None Update =" libgit2\**\*" Pack =" true" PackagePath =" " />
26
+ <None Update =" runtimes\**\*" Pack =" true" PackagePath =" " />
27
+ </ItemGroup >
28
+
29
+ </Project >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments