8000 [DE-823] CI: deploy (#309) · arangodb/spring-data@33ae83d · GitHub
[go: up one dir, main page]

Skip to content

Commit 33ae83d

Browse files
authored
[DE-823] CI: deploy (#309)
* CI: deploy * CI: rm GH Actions deploy
1 parent 76d1604 commit 33ae83d

File tree

3 files changed

+46
-35
lines changed

3 files changed

+46
-35
lines changed

.circleci/config.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,20 @@ jobs:
148148
working_directory: integration-tests
149149
- report
150150
- store_cache
151-
151+
deploy:
152+
executor: 'j17'
153+
steps:
154+
- timeout
155+
- checkout
156+
- load_cache
157+
- mvn-info
158+
- run:
159+
name: Add GPG key
160+
command: echo $GPG_PRIVATE_KEY | base64 --decode | gpg --batch --no-tty --import --yes
161+
- run:
162+
name: Deploy to Apache Maven Central
163+
command: mvn -s .circleci/maven-release-settings.xml -DskipTests deploy
164+
- store_cache
152165
workflows:
153166
test-adb-version:
154167
when:
@@ -197,3 +210,11 @@ workflows:
197210
spring-boot-version:
198211
- '3.2.6'
199212
- '3.3.0'
213+
deploy:
214+
jobs:
215+
- deploy:
216+
filters:
217+
tags:
218+
only: /^deploy.*/
219+
branches:
220+
ignore: /.*/

.circleci/maven-release-settings.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
3+
4+
<profiles>
5+
<profile>
6+
<id>ossrh</id>
7+
<activation>
8+
<activeByDefault>true</activeByDefault>
9+
</activation>
10+
<properties>
11+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
12+
</properties>
13+
</profile>
14+
</profiles>
15+
16+
<servers>
17+
<server>
18+
<id>ossrh</id>
19+
<username>${env.OSSRH_USERNAME}</username>
20+
<password>${env.OSSRH_PASSWORD}</password>
21+
</server>
22+
</servers>
23+
24+
</settings>

.github/workflows/maven-deploy.yml

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

0 commit comments

Comments
 (0)
0