diff --git a/.github/workflows/deploy-to-central.yml b/.github/workflows/deploy-to-central.yml new file mode 100644 index 0000000..38e0caa --- /dev/null +++ b/.github/workflows/deploy-to-central.yml @@ -0,0 +1,17 @@ +name: deploy-to-maven-central +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Maven Library build and publish + uses: MathieuSoysal/Java-maven-library-publisher@v1.0.4 + with: + nexus-username: ${{ secrets.NEXUS_USERNAME }} + nexus-password: ${{ secrets.NEXUS_PASSWORD }} + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + github-token: ${{ secrets.GITHUB_TOKEN }} + java-version: 17 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 23aaf39..cb63ac5 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,29 @@ com.synerset unitility - 0.1.1-beta + 1.0.0 jar + Unitility + The Physics Units of Measure Library for Java + https://github.com/pjazdzyk/unitility + + + + MIT License + https://www.opensource.org/licenses/mit-license.php + + + + + + Piotr Jażdżyk + piotr.jazdzyk@o2.pl + SYNERSET + https://www.synerset.com + + + synerset @@ -87,4 +107,109 @@ + + + ossrhDeploy + + + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ossrh + https://s01.oss.sonatype.org/ + true + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.1 + + + attach-javadocs + + jar + + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + + + githubDeploy + + + github + pjazdzyk + https://maven.pkg.github.com/pjazdzyk/unitility + + + + + + + + scm:git:git://github.com/pjazdzyk/unitility.git + scm:git:ssh://github.com:pjazdzyk/unitility.git + https://github.com/pjazdzyk/unitility + HEAD + + \ No newline at end of file