[WIP] autopublish version-bump pushes#354
Draft
MattSturgeon wants to merge 13 commits intoMinecraftFreecam:stonecutterfrom
Draft
[WIP] autopublish version-bump pushes#354MattSturgeon wants to merge 13 commits intoMinecraftFreecam:stonecutterfrom
MattSturgeon wants to merge 13 commits intoMinecraftFreecam:stonecutterfrom
Conversation
43f4b61 to
cfbc943
Compare
9091fdd to
1ad63f8
Compare
Move the plugin-stub to a separate Gradle project to avoid :build-logic:api from depending on Gradle API.
Will be replaced by a separate publishing exe.
- kotlin-test - kotest-assertions - mockk
Will be used to export release-related metadata, which CI will use when publishing release artifacts. A rootProject task defines invariants and aggregates metadata from each subproject.
CLI parsing and command runner.
HTTP client.
Kotlin `:publish` project, produces a JVM jar archive which can be run by CI to publish the current Freecam version to GitHub, Modrinth, etc.
- Check whether the current version is released - Build the publisher - Run it if needed
1ad63f8 to
6190805
Compare
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.
High level concept: when
mainis pushed to, check whether it's current version has a release associated with it. If not, publish one.build.yamlworkflow.preparejob, if the event is a push tomain, we check if a github release is published for the current version.:publish.:publishbuilds a jar from kotlin sources and generated release-publishing metadata.:generateReleaseMetadatais a rootProject task that outputs release metadata, such as the changelog.:generateReleaseMetadatatasks. These represent version-specific info, like "dependency relationships", MC version, supported loader.versionsarray.preparedetermined a release is needed, a publish job downloads all workflow artifacts and publishes them.:publishtarball is also downloaded as an artifact, but not itself published.The release workflow will be:
gradle.properties:bumpVersion:patchChangelogTODO: