Skip to content

Commit cc8651e

Browse files
Update build script
1 parent 1d0066b commit cc8651e

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/Build_and_publish_package.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,26 @@ jobs:
2626

2727
# Build and deploy nuget package
2828
# We include the GitHub package source so that we can reference current packages and also so that we can push to the package repo
29-
- name: Build Project
29+
- name: Build Project and Package
3030
run: |
3131
nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/mendix/index.json" -UserName MarcellVanRooyen -Password ${{ secrets.GHPACKAGESTOKEN }}
3232
dotnet build -c Release
33+
nuget pack .\mx_nuget.package\Mendix_package.nuspec -Version 1.101.3 -NoPackageAnalysis
3334
shell: powershell #Keep as powershell and not pwsh
3435

3536
- name: Upload build artifacts
3637
uses: actions/upload-artifact@v2
3738
with:
3839
name: nuget package
39-
path: ${{ github.workspace }}/**/*.nupkg
40+
path: ${{ github.workspace }}/**/*.nupkg
41+
42+
# After build we copy the binaries to package output folder
43+
# Finally we pack and push the package to github packages
44+
# - name: Deploy Package
45+
# run: |
46+
# nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/mendix/index.json" -UserName MarcellVanRooyen -Password ${{ secrets.GHPACKAGESTOKEN }}
47+
# nuget push **/Mendix.LibGit2Sharp*.nupkg -Source "GitHub" -SkipDuplicate
48+
# shell: powershell #Keep as powershell and not pwsh
49+
50+
51+

mx_nuget.package/Mendix_package.nuspec

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
<licenseUrl>https://raw.githubusercontent.com/libgit2/libgit2/master/COPYING</licenseUrl>
99
<projectUrl>https://github.com/mendix/libgit2sharp</projectUrl>
1010
<repository url="https://github.com/mendix/libgit2sharp.git" type="git"/>
11-
<iconUrl>https://raw.githubusercontent.com/libgit2/libgit2sharp/master/square-logo.png</iconUrl>
11+
<iconUrl>https://raw.githubusercontent.com/mendix/libgit2sharp/master/square-logo.png</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<description>LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .Net and Mono.</description>
1414
</metadata>
1515
<files>
16-
<file src="../bin/LibGit2Sharp/Release/net46/LibGit2Sharp.dll" target="lib/net46" />
17-
<file src="../bin/LibGit2Sharp/Release/net46/LibGit2Sharp.pdb" target="lib/net46" />
18-
<file src="../bin/LibGit2Sharp/Release/net46/LibGit2Sharp.xml" target="lib/net46" />
16+
<file src="../bin/LibGit2Sharp/Release/net46/LibGit2Sharp.dll" target="lib/net46" />
17+
<file src="../bin/LibGit2Sharp/Release/net46/LibGit2Sharp.pdb" target="lib/net46" />
18+
<file src="../bin/LibGit2Sharp/Release/net46/LibGit2Sharp.xml" target="lib/net46" />
1919

20-
<file src="../bin/LibGit2Sharp/Release/netstandard2.0/LibGit2Sharp.dll" target="lib/netstandard2.0" />
21-
<file src="../bin/LibGit2Sharp/Release/netstandard2.0/LibGit2Sharp.pdb" target="lib/netstandard2.0" />
22-
<file src="../bin/LibGit2Sharp/Release/netstandard2.0/LibGit2Sharp.xml" target="lib/netstandard2.0" />
20+
<file src="../bin/LibGit2Sharp/Release/netstandard2.0/LibGit2Sharp.dll" target="lib/netstandard2.0" />
21+
<file src="../bin/LibGit2Sharp/Release/netstandard2.0/LibGit2Sharp.pdb" target="lib/netstandard2.0" />
22+
<file src="../bin/LibGit2Sharp/Release/netstandard2.0/LibGit2Sharp.xml" target="lib/netstandard2.0" />
2323

24-
<file src="../LICENSE.md" target="App_Readme" />
24+
<file src="../LICENSE.md" target="App_Readme" />
2525
</files>
2626
</package>

0 commit comments

Comments
 (0)