https://github.com/baloise/ossrh-pipeline-demo
minimal setup to deploy to maven central
https://github.com/baloise/ossrh-pipeline-demo
Last synced: 8 months ago
JSON representation
minimal setup to deploy to maven central
- Host: GitHub
- URL: https://github.com/baloise/ossrh-pipeline-demo
- Owner: baloise
- License: apache-2.0
- Created: 2021-01-17T18:05:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-12T12:23:31.000Z (over 5 years ago)
- Last Synced: 2025-01-03T19:26:38.315Z (over 1 year ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ossrh-pipeline-demo
## usage
On every push the [continuous release](https://github.com/baloise/ossrh-pipeline-demo/blob/main/.github/workflows/cr.yml) will run.
If the version in the POM is a -SNAPSHOT it will be deployed to the [snapshot repository](https://oss.sonatype.org/content/repositories/snapshots/com/baloise/), otherwise to the [release repository](https://repo1.maven.org/maven2/com/baloise/).
Please note that the maven repos use caching and it may take up to hours until the new artifact is available. You can check the internal status on [https://oss.sonatype.org/](https://oss.sonatype.org/) ( login required).
Please also do not push releases on this demo.
## background
The setup is based on several [secrets available on baloise org level](https://github.com/organizations/baloise/settings/secrets/actions).
* BAOPSO_GPG_46948F68_KEYNAME
* BAOPSO_GPG_46948F68_PASSPHRASE
* BAOPSO_GPG_46948F68_PRIVATE
* OSSRH_PWD_TOKEN
* OSSRH_USER_TOKEN
They are used in the [cr.yml](https://github.com/baloise/ossrh-pipeline-demo/blob/main/.github/workflows/cr.yml) and the maven [settings.xml](https://github.com/baloise/ossrh-pipeline-demo/blob/main/.github/workflows/cr.yml).
## credits and further reading
* code / concept based on [simpligility/ossrh-pipeline-demo](https://bitbucket.org/simpligility/ossrh-pipeline-demo/src/master/)
* https://github.com/crazy-max/ghaction-import-gpg
* https://central.sonatype.org/pages/apache-maven.html
Real world Baloise examples
* https://github.com/baloise/solr-maven-plugin