diff --git a/.github/workflows/maven.yml b/.github/workflows/build.yml
similarity index 96%
rename from .github/workflows/maven.yml
rename to .github/workflows/build.yml
index 399ee6952..c8c9d0871 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,4 @@
-name: Java CI with Maven
+name: Maven Build
on:
push:
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 000000000..35d159102
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,31 @@
+name: Maven deploy to Maven Central
+on:
+ push:
+ # Pattern matched against refs/tags
+ tags:
+ - '*' # Push events to every tag not containing /
+ release:
+ types: [created]
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Maven Central Repository
+ uses: actions/setup-java@v3
+ with:
+ java-version: '11'
+ distribution: 'temurin'
+ cache: maven
+ server-id: ossrh
+ # used for signing the testjar
+ gpg-passphrase: secret
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
+
+ - name: Publish package
+ run: mvn --batch-mode deploy
+ env:
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
diff --git a/settings.xml b/settings.xml
deleted file mode 100644
index 7f700b222..000000000
--- a/settings.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
- ossrh
-
- ${env.SONATYPE_USERNAME}
-
- ${env.SONATYPE_PASSWORD}
-
-
-
\ No newline at end of file
diff --git a/testjar/gpg-agent.conf b/testjar/gpg-agent.conf
new file mode 100644
index 000000000..a8d680a1d
--- /dev/null
+++ b/testjar/gpg-agent.conf
@@ -0,0 +1 @@
+allow-loopback-pinentry
\ No newline at end of file
diff --git a/testjar/pom.xml b/testjar/pom.xml
index b1b77145c..97557cd47 100644
--- a/testjar/pom.xml
+++ b/testjar/pom.xml
@@ -61,6 +61,10 @@
${basedir}
secret
false
+
+ --pinentry-mode
+ loopback
+