Skip to content

Commit 2ef64c0

Browse files
A-Ovchinnikov-mxA-Ovchinnikov-mx
A-Ovchinnikov-mx
authored and
A-Ovchinnikov-mx
committed
Build LibGit2Sharp on PR and on push to main branch
1 parent 46b4119 commit 2ef64c0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/Build_and_publish_package.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
name: Build and Deploy Packages
22

33
on:
4+
pull_request:
45
push:
56
branches:
6-
- mendix/releases
7-
8-
env:
9-
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
10-
BUILD_TYPE: Release
7+
- main
118

129
jobs:
1310
build:
14-
# The CMake configure and build commands are platform agnostic and should work equally
15-
# well on Windows or Mac. You can convert this to a matrix build if you need
16-
# cross-platform coverage.
11+
# Currently we build LibGit2Sharp for Windows only
1712
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
1813
runs-on: windows-2019
1914

@@ -40,6 +35,7 @@ jobs:
4035
# After build we copy the binaries to package output folder
4136
# Finally we pack and push the package to github packages
4237
- name: Deploy Package
38+
if: github.event_name == 'push'
4339
run: |
4440
dotnet nuget add source "https://nuget.pkg.github.com/mendix/index.json" --name "GitHub" --username ${{ secrets.GHPACKAGESUSER }} --password ${{ secrets.GHPACKAGESTOKEN }}
4541
dotnet nuget push "**/mx_nuget/Mendix.LibGit2Sharp*.nupkg" --source "GitHub" --skip-duplicate

0 commit comments

Comments
 (0)