{"id":18385396,"url":"https://github.com/themrmilchmann/nexus-actions","last_synced_at":"2025-07-25T15:11:27.380Z","repository":{"id":177743964,"uuid":"609617841","full_name":"TheMrMilchmann/nexus-actions","owner":"TheMrMilchmann","description":"A set of GitHub Actions to automate publishing to Maven Central (and other Nexus instances).","archived":false,"fork":false,"pushed_at":"2025-06-16T09:23:28.000Z","size":325597,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T10:27:43.254Z","etag":null,"topics":["cd","ci","github-actions","maven-central","nexus","release-automation","sonatype"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheMrMilchmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-04T18:10:29.000Z","updated_at":"2025-06-16T09:22:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5be6059-7028-4068-9d4c-e5bd1037697a","html_url":"https://github.com/TheMrMilchmann/nexus-actions","commit_stats":null,"previous_names":["themrmilchmann/nexus-actions"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/TheMrMilchmann/nexus-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Fnexus-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Fnexus-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Fnexus-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Fnexus-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheMrMilchmann","download_url":"https://codeload.github.com/TheMrMilchmann/nexus-actions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Fnexus-actions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267023246,"owners_count":24022919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cd","ci","github-actions","maven-central","nexus","release-automation","sonatype"],"created_at":"2024-11-06T01:17:30.708Z","updated_at":"2025-07-25T15:11:27.373Z","avatar_url":"https://github.com/TheMrMilchmann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nexus-actions\n\n[![License](https://img.shields.io/badge/license-MIT-green.svg?style=for-the-badge\u0026label=License)](https://github.com/TheMrMilchmann/nexus-actions/blob/master/LICENSE)\n\n\u003e [!IMPORTANT]\n\u003e The Sonatype OSSRH (OSS Repository Hosting) service and the Nexus Repository\n\u003e Manager 2 will be sunset on June 30th, 2025. Afterward, this plugin may still\n\u003e be used to publish to the Central Portal with [some limitations](https://central.sonatype.org/publish/publish-portal-ossrh-staging-api#known-limitations)\n\u003e or custom instances. However, it will not be developed further.\n\u003e \n\u003e It is recommended to migrate to [publishing via the Central Portal](https://central.sonatype.org/publish/publish-portal-guide/)\n\u003e instead. The [central-portal-actions](https://github.com/TheMrMilchmann/central-portal-actions)\n\u003e provide similar capabilities to this repository using the new Central\n\u003e Publisher API.\n\nA set of [GitHub Actions](https://github.com/features/actions) to automate\npublishing to Maven Central. Each action provides access to a primitive\noperation for interacting with the [Nexus Staging Suite](https://help.sonatype.com/repomanager2/staging-releases/staging-overview).\n\n\n## Actions\n\nEach action takes a `base-url` input that can be used to configure the Nexus\ninstance. By default, this points to the [repository manager for Maven Central](https://central.sonatype.org/)\n(`https://oss.sonatype.org/`).\n\n\u003e **Note**: For projects provisioned since February 2021, the `base-url` may\n\u003e have to be updated (e.g., to `https://s01.oss.sonatype.org`). Please refer to\n\u003e [Sonatype's documentation](https://central.sonatype.org/publish/publish-guide/#releasing-to-central)\n\u003e to find out which Nexus instance you should use for your project.\n\nAdditionally, each action takes a \"username\" and a \"password\" input to\nauthenticate against the Nexus instance. These can also be provided with the\ngenerated [user token](https://central.sonatype.org/publish/manage-user/#generate-token-on-nxrm-servers)\ninstead of the plain credentials.\n\n\n### Create Nexus Staging Repository\n\nCreates a new staging Nexus repository.\n\n```yaml\nsteps:\n  - uses: TheMrMilchmann/nexus-actions/create-staging-repo@v2\n    with:\n      username: ...\n      password: ...\n      staging-profile-id: ...\n    outputs:\n      repository-id: ${{ steps.create.outputs.repository_id }}\n```\n\n#### Inputs\n\n| Input                | Description                                            | Default                       |\n|----------------------|--------------------------------------------------------|-------------------------------|\n| `username`           | The username to use to authenticate against the Nexus. |                               |\n| `password`           | The password to use to authenticate against the Nexus. |                               |\n| `base-url`           | The base URL of the Nexus instance.                    | `\"https://oss.sonatype.org/\"` |\n| `staging-profile-id` | The ID of the staging profile.                         |                               |\n| `description`        | An optional description for the staging repository.    | `\"Created by GitHub Actions\"` |\n\n#### Outputs\n\n| Output          | Description                                     |\n|-----------------|-------------------------------------------------|\n| `repository-id` | The ID of the newly created staging repository. |\n\n\n### Close Nexus Staging Repository\n\nCloses a staging Nexus repository.\n\n```yaml\nsteps:\n  - uses: TheMrMilchmann/nexus-actions/close-staging-repo@v2\n    with:\n      username: ...\n      password: ...\n      staging-repository-id: ...\n```\n\n#### Inputs\n\n| Input                   | Description                                            | Default                       |\n|-------------------------|--------------------------------------------------------|-------------------------------|\n| `username`              | The username to use to authenticate against the Nexus. |                               |\n| `password`              | The password to use to authenticate against the Nexus. |                               |\n| `base-url`              | The base URL of the Nexus instance.                    | `\"https://oss.sonatype.org/\"` |\n| `staging-repository-id` | The ID of the staging repository.                      |                               |\n| `description`           | An optional description for the staging repository.    | `\"Closed by GitHub Actions\"`  |\n\n\n### Release Nexus Staging Repository\n\nReleases a staging Nexus repository.\n\n```yaml\nsteps:\n  - uses: TheMrMilchmann/nexus-actions/release-staging-repo@v2\n    with:\n      username: ...\n      password: ...\n      staging-repository-id: ...\n```\n\n#### Inputs\n\n| Input                   | Description                                            | Default                        |\n|-------------------------|--------------------------------------------------------|--------------------------------|\n| `username`              | The username to use to authenticate against the Nexus. |                                |\n| `password`              | The password to use to authenticate against the Nexus. |                                |\n| `base-url`              | The base URL of the Nexus instance.                    | `\"https://oss.sonatype.org/\"`  |\n| `staging-repository-id` | The ID of the staging repository.                      |                                |\n| `description`           | An optional description for the staging repository.    | `\"Released by GitHub Actions\"` |\n| `auto-drop`             | Whether to automatically drop the repository.          | `true`                         |\n\n\n### Drop Nexus Staging Repository\n\nDrops a staging Nexus repository.\n\n```yaml\nsteps:\n  - uses: TheMrMilchmann/nexus-actions/drop-staging-repo@v2\n    with:\n      username: ...\n      password: ...\n      staging-repository-id: ...\n```\n\n#### Inputs\n\n| Input                   | Description                                            | Default                       |\n|-------------------------|--------------------------------------------------------|-------------------------------|\n| `username`              | The username to use to authenticate against the Nexus. |                               |\n| `password`              | The password to use to authenticate against the Nexus. |                               |\n| `base-url`              | The base URL of the Nexus instance.                    | `\"https://oss.sonatype.org/\"` |\n| `staging-repository-id` | The ID of the staging repository.                      |                               |\n| `description`           | An optional description for the staging repository.    | `\"Dropped by GitHub Actions\"` |\n\n\n## Versioning\n\nThis action is strictly following [SemVer 2.0.0](https://semver.org/spec/v2.0.0.html).\nThus, it is recommended to pin the action against specific MAJOR version. This\ncan be achieved by using the `v${MAJOR}` branch.\n\nTo get an overview about the action's versions, see the [changelog](docs/changelog/README.md).\n\n\n## Credits \u0026 History\n\nThis action was inspired by the [Gradle Nexus Publish Plugin](https://github.com/gradle-nexus/publish-plugin)\nand the [GitHub Actions provided by the nexus-actions group](https://github.com/nexus-actions).\nSince the former is limited in flexibility due to being a Gradle plugin and the\nlatter combines closing and promoting (which can be hindering), I decided to\ncreate these actions. They expose the four primitive operations to interact with\nstaging Nexus repositories and optionally provide select handful shortcuts.\n\n\n## License\n\n```\nCopyright (c) 2023-2025 Leon Linhart\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemrmilchmann%2Fnexus-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemrmilchmann%2Fnexus-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemrmilchmann%2Fnexus-actions/lists"}