@@ -3,51 +3,44 @@ name: Build and Deploy Packages
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - mendix/releases
7
7
8
8
env :
9
9
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
10
- BUILD_TYPE : ' Release'
11
- NUPKG_VERSION : ' 1.101.11'
12
-
10
+ BUILD_TYPE : Release
11
+
13
12
jobs :
14
13
build :
15
14
# The CMake configure and build commands are platform agnostic and should work equally
16
15
# well on Windows or Mac. You can convert this to a matrix build if you need
17
16
# cross-platform coverage.
18
17
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
19
- runs-on : windows-latest
20
-
18
+ runs-on : windows-2019
19
+
21
20
steps :
22
21
# Checkout repo into build area
23
22
- uses : actions/checkout@v2
24
23
with :
25
- fetch-depth : 0 # avoid shallow clone so nbgv can do its work.
26
-
27
- # install nbgv please check https://github.com/dotnet/Nerdbank.GitVersioning for more info about nbgv
28
- - uses : dotnet/nbgv@master
29
- id : nbgv
30
-
24
+ fetch-depth : 0 # avoid shallow clone so Nerdbank.GitVersioning can do its work.
25
+
31
26
# Build and deploy nuget package
32
27
# We include the GitHub package source so that we can reference current packages and also so that we can push to the package repo
33
28
- name : Build Project and Package
34
29
run : |
35
- nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/mendix/index.json" -UserName srv-LibGit2sharp-mendix -Password ${{ secrets.GHPACKAGESTOKEN }}
36
- dotnet build -c Release
37
- nuget pack .\mx_nuget.package\Mendix_package.nuspec -Version ${{ env.NUPKG_VERSION }} -NoPackageAnalysis
30
+ dotnet nuget add source "https://nuget.pkg.github.com/mendix/index.json" --name "GitHub" --username ${{ secrets.GHPACKAGESUSER }} --password ${{ secrets.GHPACKAGESTOKEN }}
31
+ dotnet pack --configuration Release --output "mx_nuget" -p:PublicRelease=true LibGit2Sharp/LibGit2Sharp.csproj
38
32
shell : powershell # Keep as powershell and not pwsh
39
-
33
+
40
34
- name : Upload build artifacts
41
35
uses : actions/upload-artifact@v2
42
36
with :
43
37
name : nuget package
44
- path : ${{ github.workspace }}/**/*.nupkg
38
+ path : ${{ github.workspace }}/**/*.nupkg
45
39
46
40
# After build we copy the binaries to package output folder
47
- # Finally we pack and push the package to github packages
41
+ # Finally we pack and push the package to github packages
48
42
- name : Deploy Package
49
43
run : |
50
- nuget source Add -Name "GitHub" -Source " https://nuget.pkg.github.com/mendix/index.json" -UserName srv-LibGit2sharp-mendix -Password ${{ secrets.GHPACKAGESTOKEN }}
51
- nuget push **/Mendix.LibGit2Sharp*.nupkg -Source "GitHub" -SkipDuplicate
44
+ dotnet nuget add source " https://nuget.pkg.github.com/mendix/index.json" --name "GitHub" --username ${{ secrets.GHPACKAGESUSER }} --password ${{ secrets.GHPACKAGESTOKEN }}
45
+ dotnet nuget push " **/mx_nuget/ Mendix.LibGit2Sharp*.nupkg" --source "GitHub" --skip-duplicate
52
46
shell : powershell # Keep as powershell and not pwsh
53
-
0 commit comments