From 47c672cc63a2243675d5fc7529eb1ff9377416bc Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Thu, 20 Jun 2024 20:29:21 +0200 Subject: [PATCH] release --- .github/workflows/maven.yml | 9 +++++++-- maven-settings.xml | 10 +++++----- pom.xml | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 65a25f7..759b51f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,12 +34,18 @@ jobs: VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Configure GPG + run: | + mkdir -p ~/.gnupg + echo "use-agent" >> ~/.gnupg/gpg.conf + echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf + - name: Build and Deploy with Maven env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - GPG_TTY: /dev/tty # This is necessary to enable GPG in CI environments + GPG_TTY: /dev/tty run: | if [[ "$VERSION" == *-SNAPSHOT ]]; then echo "------- Maven Deploy snapshot on ${{ github.event_name }} -------"; @@ -48,4 +54,3 @@ jobs: echo "------- Maven Deploy release on ${{ github.event_name }} -------"; mvn -B -e -f pom.xml clean deploy -DperformRelease=true --settings maven-settings.xml fi - diff --git a/maven-settings.xml b/maven-settings.xml index 4ba348d..76dc21c 100755 --- a/maven-settings.xml +++ b/maven-settings.xml @@ -1,7 +1,7 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 + https://maven.apache.org/xsd/settings-1.1.0.xsd"> @@ -24,7 +24,7 @@ true - gpg2 + gpg ${env.GPG_PASSPHRASE} @@ -32,4 +32,4 @@ ossrh - \ No newline at end of file + diff --git a/pom.xml b/pom.xml index 810a8a3..c385a6c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.lucee kinesis-extension - 1.0.0.83 + 1.0.0.84 pom Kinesis Extension