diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9b2327..4bcc121 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -158,7 +158,7 @@ jobs: if: steps.plan.outputs.release == 'true' && !inputs.dry_run env: NEXT: ${{ steps.plan.outputs.next }} - run: cp "target/SetHomesTwo-$NEXT.jar" "SetHomes.V$NEXT.jar" + run: cp "target/SetHomesTwo-$NEXT.jar" "SetHomes-$NEXT.jar" - name: Publish to BukkitDev if: steps.plan.outputs.release == 'true' && !inputs.dry_run @@ -174,8 +174,8 @@ jobs: VERSION: ${{ steps.plan.outputs.next }} run: | NOTES=$(bash scripts/release.sh notes --readme README.md --version "$VERSION") - gh release create "v$VERSION" "SetHomes.V$VERSION.jar" \ - --title "Set Homes V$VERSION" \ + gh release create "v$VERSION" "SetHomes-$VERSION.jar" \ + --title "SetHomes V$VERSION" \ --notes "$NOTES" # An issue closes when the commit that fixed it is contained in the commit diff --git a/scripts/publish-bukkitdev.sh b/scripts/publish-bukkitdev.sh index cc4e62c..40d9c52 100755 --- a/scripts/publish-bukkitdev.sh +++ b/scripts/publish-bukkitdev.sh @@ -49,7 +49,7 @@ CHANGELOG=$(bash "$SCRIPT_DIR/release.sh" notes --readme README.md --version "$V # backslashes and newlines. METADATA=$(jq -n \ --arg changelog "$CHANGELOG" \ - --arg displayName "Set Homes V$VERSION" \ + --arg displayName "SetHomes V$VERSION" \ --argjson gameVersions "$GAME_VERSIONS" \ '{ changelog: $changelog, @@ -64,7 +64,7 @@ METADATA=$(jq -n \ RESPONSE=$(curl -sS -w '\n%{http_code}' -X POST "$API/projects/$PROJECT_ID/upload-file" \ -H "X-Api-Token: $CURSEFORGE_TOKEN" \ --form-string "metadata=$METADATA" \ - -F "file=@SetHomes.V$VERSION.jar") + -F "file=@SetHomes-$VERSION.jar") BODY=$(echo "$RESPONSE" | head -n -1) CODE=$(echo "$RESPONSE" | tail -n 1) diff --git a/scripts/test-publish-bukkitdev.sh b/scripts/test-publish-bukkitdev.sh index 40ef9d1..e0a7712 100644 --- a/scripts/test-publish-bukkitdev.sh +++ b/scripts/test-publish-bukkitdev.sh @@ -163,13 +163,13 @@ else fi DISPLAY_NAME=$(printf '%s' "$METADATA" | jq -r '.displayName // ""' 2>/dev/null) -if [ "$DISPLAY_NAME" = "Set Homes V9.9.9" ]; then +if [ "$DISPLAY_NAME" = "SetHomes V9.9.9" ]; then pass "names the file after the version" else fail "names the file after the version" "got: $DISPLAY_NAME" fi -if has_arg "file=@SetHomes.V9.9.9.jar"; then +if has_arg "file=@SetHomes-9.9.9.jar"; then pass "uploads the versioned jar" else fail "uploads the versioned jar" "args were: $(args_summary)"