Replies: 1 comment
-
Hi @vikulin, thanks for sharing with the community! Unfortunately, we currently do not allow self-promotion or advertising on the Community Discussions. We want to make sure there is space for users to ask questions without overwhelming them with other conversations. Thank you for helping us maintain a productive and tidy community for all our members. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you're looking to convert a regular GitHub repository into a functional Maven repository to host
.aar
,.jar
, or other Java artifacts, this guide will walk you through the process using two simple GitHub Actions:.aar
,.jar
,-sources.jar
) to your Maven repo✅ Goal
Repurpose a GitHub repo (e.g., https://github.com/RiV-chain/artifact) as a Maven repository where you can push artifacts from other repos using GitHub Actions.
🧱 Step-by-Step Setup
1. Create/Prepare the Target Repository
Choose or create a GitHub repository to act as your Maven repository.
Example:
https://github.com/RiV-chain/artifact
Structure doesn't matter initially — files will be committed to branches based on artifact metadata.
2. Set up a Personal Access Token (PAT)
In the source repo (where you publish from), go to Settings → Secrets and variables → Actions → New repository secret:
MAVEN_PAT
repo
andworkflow
access (from the user pushing to the Maven repo)3. Add GitHub Action to Source Repo
In your source repo (where you build the
.aar
or.jar
), add a GitHub Actions workflow like this:This action will:
Copy
mesh.aar
andmesh-sources.jar
to theartifact repo
Generate Maven-compatible structure like:
📦 Consuming the Artifacts
To consume the artifact in another project via Gradle:
📚 References
Beta Was this translation helpful? Give feedback.
All reactions