-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
53 lines (48 loc) · 1.5 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
image: gradle:7-jdk8
stages:
- publish
publish-annotations:
stage: publish
script:
- gradle com.pocolifo.obfuscator.annotations:build
- gradle com.pocolifo.obfuscator.annotations:publishMavenPublicationToGitlabRepository
rules:
- if: $CI_COMMIT_TAG == ""
when: never
- changes:
- com.pocolifo.obfuscator.annotations/**/*
when: always
publish-engine:
stage: publish
script:
- gradle com.pocolifo.obfuscator.engine:build
- gradle com.pocolifo.obfuscator.engine:publishMavenPublicationToGitlabRepository
rules:
- if: $CI_COMMIT_TAG
changes:
- com.pocolifo.obfuscator.engine/**/*
when: always
publish-cli:
stage: publish
script:
- gradle com.pocolifo.obfuscator.cli:build
- gradle com.pocolifo.obfuscator.cli:publishMavenPublicationToGitlabRepository
rules:
- if: $CI_COMMIT_TAG == ""
when: never
- changes:
- com.pocolifo.obfuscator.cli/**/*
when: always
publish-gradle-plugin:
stage: publish
script:
- gradle com.pocolifo.obfuscator.gradleplugin:build
- gradle com.pocolifo.obfuscator.gradleplugin:publishObfuscatorPluginPluginMarkerMavenPublicationToGitlabRepository
- gradle com.pocolifo.obfuscator.gradleplugin:publishPluginMavenPublicationToGitlabRepository
- gradle com.pocolifo.obfuscator.gradleplugin:publishMavenPublicationToGitlabRepository
rules:
- if: $CI_COMMIT_TAG == ""
when: never
- changes:
- com.pocolifo.obfuscator.gradleplugin/**/*
when: always