File tree 3 files changed +48
-12
lines changed
3 files changed +48
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy Packages
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ build :
11
+ # Currently we build LibGit2Sharp for Windows only
12
+ # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
13
+ runs-on : windows-2019
14
+
15
+ steps :
16
+ # Checkout repo into build area
17
+ - uses : actions/checkout@v2
18
+ with :
19
+ fetch-depth : 0 # avoid shallow clone so Nerdbank.GitVersioning can do its work.
20
+
21
+ # Build and deploy nuget package
22
+ # We include the GitHub package source so that we can reference current packages and also so that we can push to the package repo
23
+ - name : Build Project and Package
24
+ run : |
25
+ dotnet nuget add source "https://nuget.pkg.github.com/mendix/index.json" --name "GitHub" --username ${{ secrets.GHPACKAGESUSER }} --password ${{ secrets.GHPACKAGESTOKEN }}
26
+ dotnet pack --configuration Release --output "mx_nuget" -p:PublicRelease=true LibGit2Sharp/LibGit2Sharp.csproj
27
+ shell : powershell # Keep as powershell and not pwsh
28
+
29
+ - name : Upload build artifacts
30
+ uses : actions/upload-artifact@v2
31
+ with :
32
+ name : nuget package
33
+ path : ${{ github.workspace }}/**/*.nupkg
34
+
35
+ # After build we copy the binaries to package output folder
36
+ # Finally we pack and push the package to github packages
37
+ - name : Deploy Package
38
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
39
+ run : |
40
+ dotnet nuget add source "https://nuget.pkg.github.com/mendix/index.json" --name "GitHub" --username ${{ secrets.GHPACKAGESUSER }} --password ${{ secrets.GHPACKAGESTOKEN }}
41
+ dotnet nuget push "**/mx_nuget/Mendix.LibGit2Sharp*.nupkg" --source "GitHub" --skip-duplicate
42
+ shell : powershell # Keep as powershell and not pwsh
Original file line number Diff line number Diff line change 19
19
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
20
20
</PropertyGroup >
21
21
22
+ <PropertyGroup >
23
+ <PackageId >Mendix.LibGit2Sharp</PackageId >
24
+ </PropertyGroup >
25
+
22
26
<ItemGroup >
23
27
<None Include =" ..\square-logo.png" Pack =" true" PackagePath =" " Visible =" false" />
24
28
<None Include =" ..\README.md" Pack =" true" PackagePath =" App_Readme/" Visible =" false" />
30
34
</ItemGroup >
31
35
32
36
<ItemGroup >
33
- <PackageReference Include =" LibGit2Sharp.NativeBinaries" Version =" [2.0.315-alpha.0.9 ]" PrivateAssets =" none" />
37
+ <PackageReference Include =" Mendix. LibGit2Sharp.NativeBinaries" Version =" [1.110.1 ]" PrivateAssets =" none" />
34
38
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" all" />
35
39
<PackageReference Include =" Nerdbank.GitVersioning" Version =" 3.4.220" PrivateAssets =" all" />
36
40
</ItemGroup >
37
41
38
42
<Import Project =" ..\Targets\CodeGenerator.targets" />
39
43
<Import Project =" ..\Targets\GenerateNativeDllName.targets" />
40
44
41
- <Target Name =" SetNuSpecProperties" BeforeTargets =" GenerateNuspec" DependsOnTargets =" GetBuildVersion" >
42
- <PropertyGroup >
43
- <PackageReleaseNotes >https://github.com/libgit2/libgit2sharp/blob/$(GitCommitIdShort)/CHANGES.md#libgit2sharp-changes</PackageReleaseNotes >
44
- </PropertyGroup >
45
- </Target >
46
-
47
45
</Project >
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json" ,
3
- "version" : " 0.27.0-preview.{height}" ,
4
- "publicReleaseRefSpec" : [
5
- " ^refs/heads/master$" , // we release out of master
6
- " ^refs/heads/maint/v\\ d+(?:\\ .\\ d+)?$" // and maint/vNN branches
7
- ],
3
+ "version" : " 1.110.1" ,
8
4
"cloudBuild" : {
9
5
"buildNumber" : {
10
6
"enabled" : true
You can’t perform that action at this time.
0 commit comments