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
3 changes: 3 additions & 0 deletions .github/release-notes/v1.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Added

- `/sharedgroup stop` lets the group owner end an active game while keeping the group together.
30 changes: 24 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
jobs:
release:
runs-on: ubuntu-latest
environment: MODRINTH_TOKEN

steps:
- name: Check out the repository
Expand Down Expand Up @@ -44,9 +45,26 @@ jobs:
- name: Publish the GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: >-
gh release create "$GITHUB_REF_NAME"
build/libs/*.jar
--verify-tag
--generate-notes
--title "$GITHUB_REF_NAME"
run: |
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
echo "GitHub release $GITHUB_REF_NAME already exists."
exit 0
fi

notes_file=".github/release-notes/${GITHUB_REF_NAME}.md"
if [[ -f "$notes_file" ]]; then
gh release create "$GITHUB_REF_NAME" build/libs/*.jar \
--verify-tag --notes-file "$notes_file" --title "$GITHUB_REF_NAME"
else
gh release create "$GITHUB_REF_NAME" build/libs/*.jar \
--verify-tag --generate-notes --title "$GITHUB_REF_NAME"
fi

- name: Publish the Modrinth version
env:
GH_TOKEN: ${{ github.token }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: |
test -n "$MODRINTH_TOKEN"
MODRINTH_CHANGELOG="$(gh release view "$GITHUB_REF_NAME" --json body --jq .body)" \
./gradlew modrinth
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
| `/sharedgroup remove [player]` | Remove a player from your group | OP, group owner |
| `/sharedgroup revoke` | Delete the group and remove all its players | OP, group owner |
| `/sharedgroup start` | Start the game and stat synchronization | OP, group owner |
| `/sharedgroup stop` | Stop an active game without deleting the group | Group owner |
| `/sharedgroup players` | List the online players in your group | Group member |
| `/sharedgroup version` | Display the plugin version | None |

## What remains to be done

- Add the `/sharedgroup stop` command.
- Synchronize players' food levels and saturation.
- Add automated tests for the group lifecycle and stat synchronization.

Expand Down
14 changes: 13 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
plugins {
id("java")
id("com.modrinth.minotaur") version "2.10.0"
}

group = "fr.korastrip.sharedstats"
version = "1.0.0"
version = "1.0.1"

modrinth {
projectId.set("c9FDN1zY")
versionNumber.set(project.version.toString())
versionType.set("release")
uploadFile.set(tasks.jar)
changelog.set(providers.environmentVariable("MODRINTH_CHANGELOG").orElse("Release ${project.version}"))

gameVersions.addAll("26.2")
loaders.add("paper")
}

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: SharedHealth
version: 1.0.0
version: 1.0.1
main: fr.korastrip.paperplugin.SharedStats
author: Kora
description: Shared your food and your health with your friends.
Expand Down
Loading