mc-publish
mc-publish copied to clipboard
Variables to build release name?
Hey, I'm just setting this up for one of my projects for the first time. However the docs in your README suggest that the name
argument should be hardcoded...
Is there not any way I can have the name
created using version numbers that the action should already know?
For example, what I want to achieve is something like:
- name: Publish
uses: Kir-Antipov/[email protected]
with:
# ... other setup here ...
name: [${{ loader }} ${{ mcVersion }}] ${{ modVersion }}
That would aim to produce something like:
[Fabric 1.19.4] 1.0.0
My mod is using a multi-loader setup, so it supports both Fabric and Forge, hence the suggested loader
variable there too. Although thinking about it more, this might be more appropriate using a matrix so that I can supply the correct files too, since they'll be in different locations per loader.
Aim here is preventing any need to edit the CI pipeline constantly, as this should not be necessary.