Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 33 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.list-versions.outputs.versions }}
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down Expand Up @@ -40,8 +42,36 @@ jobs:
- name: Build
run: ./gradlew build

- name: Capture build artifacts
- name: List built versions
id: list-versions
run: |
versions=$(ls versions | jq -R -s -c 'split("\n")[:-1]')
echo "versions=$versions" >> "$GITHUB_OUTPUT"

- name: Upload Jar zip
uses: actions/upload-artifact@v7
with:
name: solstice-jars
path: |
versions/**/build/libs/*.jar
!versions/**/build/libs/*-sources.jar

upload-artifacts:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
version: ${{ fromJSON(needs.build.outputs.versions) }}
steps:
- name: Download jars
uses: actions/download-artifact@v6
with:
name: solstice-jars
path: jars

- name: Upload (${{ matrix.version }})
uses: actions/upload-artifact@v7
with:
name: Artifacts
path: versions/**/build/libs/
name: solstice-${{ matrix.version }}
path: jars/**/*${{ matrix.version }}.jar
archive: 'false'
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: Solstice-${{ steps.get-version.outputs.version }}
tag_name: ${{ steps.get-version.outputs.version }}
prerelease: ${{ steps.get-version.outputs.prerelease == 'true' }}
draft: ${{ steps.get-version.outputs.prerelease == 'true' }}
generate_release_notes: true
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/me/alexdevs/solstice/api/text/Format.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ public class Format {
public static final NodeParser PARSER;

static {
var gradientParser = eu.pb4.placeholders.api.parsers.TagParser.DEFAULT.copy();
gradientParser.register(PhaseGradientTag.createTag());
eu.pb4.placeholders.api.parsers.tag.TagRegistry.registerDefault(PhaseGradientTag.createTag());
PARSER = NodeParser.builder()
.simplifiedTextFormat()
//? if >= 26.1
//.serverPlaceholders()
//? if < 26.1
.globalPlaceholders()
.quickText()
.add(gradientParser)
.build();
}

Expand Down
2 changes: 1 addition & 1 deletion stonecutter.properties.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mod.id = "solstice"
mod.name = "Solstice Essentials"
mod.group = "me.alexdevs"
mod.version = "1.9.5"
mod.version = "1.9.6"

loomx.loom_version = "1.17-SNAPSHOT"

Expand Down
Loading