Skip to content

Commit

Permalink
CI: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rashtao committed Jun 18, 2024
1 parent 76d1604 commit 73bd0c3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
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>

0 comments on commit 73bd0c3

Please sign in to comment.