Skip to content

Commit 55bbf24

Browse files
committed
Add GitLab CI build file
1 parent 4df4aa4 commit 55bbf24

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.gitlab-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
workflow:
2+
name: "Publish fork"
3+
rules:
4+
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
5+
when: never
6+
- if: $CI_COMMIT_BRANCH =~ /^forks\//
7+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^forks\//
8+
9+
stages:
10+
- publish
11+
12+
publish-artifactory:
13+
image: gradle:jdk11-ubi
14+
stage: publish
15+
script:
16+
- ./gradlew clean build
17+
- ./gradlew publish
18+

0 commit comments

Comments
 (0)