Skip to content

[CI][packaging] Automate process of deploying a new release with Github actions#81

Merged
mikepapadim merged 5 commits intomainfrom
feat/automate-deploy
Dec 10, 2025
Merged

[CI][packaging] Automate process of deploying a new release with Github actions#81
mikepapadim merged 5 commits intomainfrom
feat/automate-deploy

Conversation

@mikepapadim
Copy link
Copy Markdown
Member

GPULlama3.java Release Workflows

GitHub Actions workflows for automating releases to Maven Central.

📁 Files

Available in .github/workflows/:

File Purpose
prepare-release.yml Creates release branch, bumps versions, generates changelog, opens PR
finalize-release.yml Creates git tag and GitHub Release when release PR merges
deploy-maven-central.yml Deploys to Maven Central when tag is pushed

🔄 Release Flow

1. PREPARE (manual trigger)
   └── Creates release/X.Y.Z branch + PR
   
2. REVIEW & MERGE (manual)
   └── Review PR, CI runs, merge when ready
   
3. FINALIZE (auto on PR merge)
   └── Creates tag vX.Y.Z + GitHub Release
   
4. DEPLOY (auto on tag push)
   └── Publishes to Maven Central

🚀 Usage

Starting a Release

  1. Go to ActionsPrepare GPULlama3 Release
  2. Click Run workflow
  3. Enter version (e.g., 0.2.3) and previous version (e.g., 0.2.2)
  4. Review and merge the created PR
  5. Everything else is automatic!

Manual Override

# Just create tag manually (skips prepare/finalize)
git tag -a v0.2.3 -m "Release 0.2.3"
git push origin v0.2.3
# → deploy-maven-central triggers automatically

🔐 Required Secrets

Secret Description
OSSRH_USERNAME Maven Central username
OSSRH_TOKEN Maven Central token
GPG_PRIVATE_KEY gpg --armor --export-secret-keys KEY_ID
GPG_KEYNAME GPG key ID
GPG_PASSPHRASE GPG passphrase

@mikepapadim mikepapadim self-assigned this Dec 10, 2025
@mikepapadim mikepapadim marked this pull request as ready for review December 10, 2025 09:56
@mikepapadim mikepapadim added the CI Improvements related to CI automation label Dec 10, 2025
@mikepapadim mikepapadim merged commit 03b4745 into main Dec 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Improvements related to CI automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants