Skip to content

Create GitHub Action to Publish KMP Library Automatically on Maven Central #29

@therajanmaurya

Description

@therajanmaurya

We need to set up a GitHub Action that automates the process of publishing our library to the appropriate package registry Maven Central

✅ Goals:

  • Automate library publishing via GitHub Actions
  • Trigger publishing on tag creation (e.g., v1.0.0)
  • Ensure proper versioning and tagging
  • Include secrets/configs securely (e.g., registry token)

📋 Tasks:

  • Define trigger (e.g., on: push with tag filter)
  • Set up necessary environment variables/secrets
  • Add publish.yml under .github/workflows/
  • Configure steps: install, build, test, publish
  • Test the workflow on a sample tag release
  • Update documentation with release steps

💡 Notes:

  • Ensure dry-run testing before actual publishing
  • Confirm proper permissions for GITHUB_TOKEN or any external tokens

Let’s make the release process seamless and error-proof! 🔄🚀

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