Skip to content

Commit 1e05924

Browse files
author
Dennis Labordus
committed
Also start build on pull requests on main and develop, and pushes not on main and develop.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent b4518ba commit 1e05924

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-project.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@ jobs:
5050
with:
5151
output_file: custom_maven_settings.xml
5252
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
53-
- name: Build with Maven
53+
- name: Build Native with Maven
54+
if: ${{ github.event_name == 'pull_request' }}
5455
run: ./mvnw -s custom_maven_settings.xml -B clean verify -Pnative
56+
- name: Build with Maven
57+
if: ${{ github.event_name == 'push' }}
58+
run: ./mvnw -s custom_maven_settings.xml -B clean verify

0 commit comments

Comments
 (0)