https://github.com/cucumber/action-publish-mvn
GitHub Action to publish Maven artefacts
https://github.com/cucumber/action-publish-mvn
github-actions java polyglot-release
Last synced: 8 months ago
JSON representation
GitHub Action to publish Maven artefacts
- Host: GitHub
- URL: https://github.com/cucumber/action-publish-mvn
- Owner: cucumber
- License: mit
- Created: 2021-09-23T15:37:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T20:26:04.000Z (over 2 years ago)
- Last Synced: 2025-02-05T14:01:42.527Z (over 1 year ago)
- Topics: github-actions, java, polyglot-release
- Language: Java
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/cucumber/action-publish-mvn/actions/workflows/test.yaml)
# action-publish-mvn
Publishes a Java module to [Maven Central](https://search.maven.org/)
Needs Java to be installed first.
## Inputs
* `gpg-private-key`
* `gpg-passphrase`
* `nexus-username`
* `nexus-password`
* `server-id` (default: `ossrh`)
* `maven-goals` (default: `deploy`)
* `maven-profiles` (default: `sign-source-javadoc`)
* `working-directory` (default `.`)
## Example
```yaml
name: Publish
on:
push:
branches:
- "release/*"
jobs:
publish-ui:
name: Publish UI package to mvn
runs-on: ubuntu-latest
environment: Release
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '17'
- name: Test the action
uses: cucumber/action-publish-mvn@v1.0.0
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus-username: ${{ secrets.SONATYPE_USERNAME }}
nexus-password: ${{ secrets.SONATYPE_PASSWORD }}
working-directory: "java"
```