diff --git a/.github/workflows/maven-deploy-release.yml b/.github/workflows/maven-deploy-release.yml
new file mode 100644
index 0000000..0f88732
--- /dev/null
+++ b/.github/workflows/maven-deploy-release.yml
@@ -0,0 +1,31 @@
+name: Java CI with Maven - Deploy Release
+
+on:
+ release:
+ types: [created]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Import GPG Owner Trust
+ run: echo ${{secrets.GPG_OWNERTRUST}} | base64 --decode | gpg --import-ownertrust
+
+ - name: Import GPG key
+ run: echo ${{secrets.GPG_SECRET_KEYS}} | base64 --decode | gpg --import --no-tty --batch --yes
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ server-id: ossrh
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
+ - name: Build with Maven
+ run: mvn --no-transfer-progress -B deploy -Prelease -Drevision=${GITHUB_REF##*/v} -Dchangelist= -Dgpg.keyname=${{secrets.GPG_KEYNAME}} -Dgpg.passphrase=${{secrets.GPG_PASSPHRASE}} --file pom.xml
+ env:
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
+
diff --git a/.github/workflows/maven-deploy-snapshot.yml b/.github/workflows/maven-deploy-snapshot.yml
new file mode 100644
index 0000000..2260b6f
--- /dev/null
+++ b/.github/workflows/maven-deploy-snapshot.yml
@@ -0,0 +1,31 @@
+name: Java CI with Maven - Deploy Snapshot
+
+on:
+ push:
+ branches: [ main ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Import GPG Owner Trust
+ run: echo ${{secrets.GPG_OWNERTRUST}} | base64 --decode | gpg --import-ownertrust
+
+ - name: Import GPG key
+ run: echo ${{secrets.GPG_SECRET_KEYS}} | base64 --decode | gpg --import --no-tty --batch --yes
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ server-id: ossrh
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
+ - name: Build with Maven
+ run: mvn --no-transfer-progress -B deploy -Prelease -Drevision=${GITHUB_REF##*/} -Dgpg.keyname=${{secrets.GPG_KEYNAME}} -Dgpg.passphrase=${{secrets.GPG_PASSPHRASE}} --file pom.xml
+ env:
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
+
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-pull-request.yml
similarity index 75%
rename from .github/workflows/maven.yml
rename to .github/workflows/maven-pull-request.yml
index ab9f8ef..b8cb941 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven-pull-request.yml
@@ -1,8 +1,6 @@
name: Java CI with Maven
on:
- push:
- branches: [ main ]
pull_request:
branches: [ main ]
@@ -18,4 +16,4 @@ jobs:
with:
java-version: 1.8
- name: Build with Maven
- run: mvn -B package --file pom.xml
+ run: mvn --no-transfer-progress -B verify -Drevision=${GITHUB_REF##*/} --file pom.xml
diff --git a/pom.xml b/pom.xml
index 475beea..b9a89b0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,13 +7,15 @@
${revision}${sha1}${changelist}
RSyntaxTextArea ANTLR 4 Extension
+ An ANTLR 4 Extension for RSyntaxTextArea.
+
+ https://github.com/tisoft/rsyntaxtextarea-antlr4-extension
2021
Markus Heberling
https://markus.heberling.net
-
Apache-2.0
@@ -21,6 +23,30 @@
+
+
+ Markus Heberling
+ https://markus.heberling.net
+
+
+
+ scm:git:git@github.com:tisoft/rsyntaxtextarea-antlr4-extension.git
+ scm:git:git@github.com:tisoft/rsyntaxtextarea-antlr4-extension.git
+ HEAD
+ scm:git:git@github.com:tisoft/rsyntaxtextarea-antlr4-extension.git
+
+
+
+
+ ossrh
+ https://oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
+ ossrh
+ https://oss.sonatype.org/content/repositories/snapshots
+
+
+
local
@@ -217,4 +243,69 @@
+
+
+ release
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.9.1
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.6
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+ --batch
+ --yes
+ --pinentry-mode
+ loopback
+
+
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+ 2.8.2
+
+ true
+
+
+
+
+
+