Skip to content

Commit 64dfb79

Browse files
committed
CI: release (DE-828)
1 parent 10082d1 commit 64dfb79

File tree

3 files changed

+38
-72
lines changed

3 files changed

+38
-72
lines changed

.circleci/config.yml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff 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

4358
executors:
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

186208
workflows:
@@ -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: /.*/

.github/workflows/maven-deploy.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/maven-release.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)