Automatically deploy to example mod#170
Merged
Merged
Conversation
Let's hope this works!
Matrices my beloved.
Don't get ahead of yourselves now...
I really can't type can I.
Actually RTFM!
Maybe actually build your dependencies, silly...
Well, this is awkward.
Second time's the charm?
Maybe I should test some things locally? Nahhh!
Surely deleting everything can't go wrong, right?
Just surrended yourself to our lord and saviour Git.
Fabric CLI whyyyy.... I know what I'm doinggg! (lies)
Seems like Fabric CLI still prompts for advanced options even when the session is not interactive, causing it to get stuck. Welp, that's another oversight to fix...
If only github would allow for sharing some step configs TwT
Who cares if it isn't standard? It's GNU standard!
Prevents enabling datagen and split sources on Minecraft versions on which Loom does not support it. Good spot, Modmuss!
Smh, use proper glob implementations GitHub!
Silly Git, who cares if we're doing useless work?
What could possibly go wrong?
Unfortunately the checkout action has no easy way to do this...
It's master you dingus, not main...
Why oh why, is this not a built-in thing...
I should read up on git plumbing commands....
Let's try something new :3
Contributor
Author
|
Just noticed the |
Member
Can you just copt the file from somewhere in this repo? |
Contributor
Author
Yeah will do, what would be a good place to put it? |
Member
|
I think inside |
a1b542d to
1cdd0f1
Compare
modmuss50
reviewed
Apr 8, 2026
bdf1dfa to
16fba4d
Compare
modmuss50
reviewed
Apr 8, 2026
modmuss50
approved these changes
Apr 8, 2026
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.
This PR adds a deployment workflow that automatically deploys to the example mod repo.
A
DEPLOY_KEYsecret is required, which must be an SSH deploy key with write access to the example mod repository.It is triggered when any push to the main branch affects the workflow itself, or any files in
scriptsorcli.After being triggered, the workflow retrieves the list of currently supported Minecraft versions, and selects the ones to publish for. All major (release) versions will be used, with the latest minor version selected.
It will then generate a template for each of those versions, and publish to the corresponding existing branch, or to a new branch if one does not exist yet.
See https://github.com/CelDaemon/fabric-example-mod/ for the results of running this workflow on the current state of the repo.
P.S.
I also recommend turning off the webhook for the example mod, as many branches are pushed to at once.
#171 should also be merged to preserve the README.md in the generated template.