Repository navigation
Publishing: Release workflow for packpack to Maven Central (#102) - #103
Merged
Merged
Conversation
…es in gradle.properties (#102) publish-maven.yml runs on a published packpack-v* Release in the maven-central environment: tag and version agree and are new on Central, missing secrets are named, the bundle is signed, checked and uploaded to the Central Portal as USER_MANAGED, so a person still presses Publish. A manual run stops before the upload. mavenGroup and packpackVersion live in gradle.properties only. publish-pypi.yml now runs only for v* releases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #102
Written now; nothing can upload until the user creates the
maven-centralenvironment with its secrets and publishes apackpack-v*release.Feature added
gradle.propertiesholdsmavenGroupandpackpackVersion, whichpackpack/build.gradle.ktsreads. A group unification (python-multiplatform Cargo backend, stage 2: build Rust crates for Android and iOS (#94) #95) is one line..github/workflows/publish-maven.yml, on a published Release taggedpackpack-v<version>, in themaven-centralenvironment:packpackVersion, and the version must not already be on Central;SIGNING_KEY,SIGNING_KEY_PASSWORD,CENTRAL_PORTAL_USERNAME,CENTRAL_PORTAL_PASSWORD) stops the job, naming it;centralBundlestages and signs the bundle;check_central_bundle.pychecks it;USER_MANAGED. The Portal validates it and waits for a person to press Publish, a second gate after the tag.publish-pypi.yml: now runs only forv*releases, so apackpack-v*release does not fail the CLI's PyPI job.Verification
gradle.properties(org.thisisthepy.python.multiplatform:packpack:0.1.0);centralBundlebuilds unsigned, and the check passes with--unsigned.maven-centralfor a release) and the Portal upload. A manual dispatch needs the workflow on the default branch (main), which it reaches with the next release sync; a real upload needs the user's secrets.Documentation corrected
SPEC, Distribution through Maven Central: the release steps and the one place the coordinates are written.