Skip to content

Commit

Permalink
[DE-823] CI: deploy (#309)
Browse files Browse the repository at this point in the history
* CI: deploy

* CI: rm GH Actions deploy
  • Loading branch information
rashtao authored Jun 18, 2024
1 parent 76d1604 commit 33ae83d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 35 deletions.
23 changes: 22 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,20 @@ jobs:
working_directory: integration-tests
- report
- store_cache

deploy:
executor: 'j17'
steps:
- timeout
- checkout
- load_cache
- mvn-info
- run:
name: Add GPG key
command: echo $GPG_PRIVATE_KEY | base64 --decode | gpg --batch --no-tty --import --yes
- run:
name: Deploy to Apache Maven Central
command: mvn -s .circleci/maven-release-settings.xml -DskipTests deploy
- store_cache
workflows:
test-adb-version:
when:
Expand Down Expand Up @@ -197,3 +210,11 @@ workflows:
spring-boot-version:
- '3.2.6'
- '3.3.0'
deploy:
jobs:
- deploy:
filters:
tags:
only: /^deploy.*/
branches:
ignore: /.*/
24 changes: 24 additions & 0 deletions .circleci/maven-release-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>

<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USERNAME}</username>
<password>${env.OSSRH_PASSWORD}</password>
</server>
</servers>

</settings>
34 changes: 0 additions & 34 deletions .github/workflows/maven-deploy.yml

This file was deleted.

0 comments on commit 33ae83d

Please sign in to comment.