Skip to content

Add release workflow back #24

@hungyanbin

Description

@hungyanbin

Description:

Currently, our GitHub Actions workflow is configured to trigger Maven releases automatically. However, this process involves the use of a release key, which is sensitive and poses a security risk—especially in the context of an open source repository.

To better align with best practices and ensure the integrity of our releases, we should explore safer alternatives for managing releases. Potential areas to investigate include:

  • Using GitHub Environments for setting gradle properties including the GPG key file
signing.keyId=...
signing.password=...
signing.secretKeyRingFile=/somewhere/secring.gpg

mavenCentralUsername=...
mavenCentralPassword=...
  • Moving the release process to a more controlled environment (e.g., self-hosted runner or external CI)

  • Requiring manual approval or pull request triggers before release steps

  • Leveraging tools like GitHub Releases + manual Maven Central publishing

Reference:

https://central.sonatype.org/publish/requirements/gpg/
https://central.sonatype.org/publish/generate-portal-token/

Goal:

Make our Maven release process more secure without sacrificing too much convenience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions