File tree Expand file tree Collapse file tree 3 files changed +38
-72
lines changed Expand file tree Collapse file tree 3 files changed +38
-72
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,21 @@ commands:
3939 key : maven-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/maven_cache_seed" }}
4040 paths :
4141 - ~/.m2/repository
42+ config_gpg :
43+ steps :
44+ - run :
45+ name : Configure GPG
46+ command : echo $GPG_PRIVATE_KEY | base64 --decode | gpg --batch --no-tty --import --yes
47+ deploy :
48+ steps :
49+ - run :
50+ name : Deploy to Apache Maven Central
51+ command : mvn -s .circleci/maven-release-settings.xml -Dmaven.test.skip=true deploy
52+ release :
53+ steps :
54+ - run :
55+ name : Release to Apache Maven Central
56+ command : mvn -s .circleci/maven-release-settings.xml -Dmaven.test.skip=true nexus-staging:release
4257
4358executors :
4459 j8 :
@@ -175,12 +190,19 @@ jobs:
175190 - timeout
176191 - checkout
177192 - load_cache
178- - run :
179- name : Add GPG key
180- command : echo $GPG_PRIVATE_KEY | base64 --decode | gpg --batch --no-tty --import --yes
181- - run :
182- name : Deploy to Apache Maven Central
183- command : mvn -s .circleci/maven-release-settings.xml -DskipTests deploy
193+ - config_gpg
194+ - deploy
195+ - store_cache
196+
197+ release :
198+ executor : ' j8'
199+ steps :
200+ - timeout
201+ - checkout
202+ - load_cache
203+ - config_gpg
204+ - deploy
205+ - release
184206 - store_cache
185207
186208workflows :
@@ -267,3 +289,13 @@ workflows:
267289 only : /^deploy.*/
268290 branches :
269291 ignore : /.*/
292+
293+ release :
294+ jobs :
295+ - release :
296+ context : java-release
297+ filters :
298+ tags :
299+ only : /^release.*/
300+ branches :
301+ ignore : /.*/
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments