Skip to content

Commit 6bd4c08

Browse files
committed
adjust release CI
1 parent 13783f9 commit 6bd4c08

2 files changed

Lines changed: 47 additions & 10 deletions

File tree

.github/releases/v2.2.0.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# v2.3.0
1+
# v2.3.0 (2026-02-18)
22

3-
## Highlights
3+
### Highlights
44
- Startup automations
55
- Automatically run when your computer starts
66
- Minimize to the system tray on close
77
- Single-instance handling
88
- Added `.deb` and `.tar.gz` release packages
99

10-
## Added
10+
### Added
1111
- Server software chip in MCSrvStatus query mode
1212

13-
## Changed
13+
### Changed
1414
- JAR installations are now treated as portable installs
1515
- Brought back versioned release asset names and made naming more consistent across all release files
1616
- App data directory names are now `Server List Explorer` on macOS and Windows, and `server-list-explorer` on Linux
1717
- Logs directory moved from `%localappdata%/ServerListExplorer/logs` to `%appdata%/Server List Explorer/logs`
1818
- Settings dropdown previews no longer reserve icon spacing when no icon is present
1919

20-
## Fixed
20+
### Fixed
2121
- Setup wizard changes now take effect only after you finish setup
2222
- Fixes an issue where the server list file path could lock unexpectedly during the Paths step
2323

24-
## Removed
24+
### Removed
2525
- Dropped migration support for v2.0.0 and v2.0.1 settings/log folders
2626

27-
## Documentation
27+
### Documentation
2828
- Removed GitHub wiki reference from `README.md`
2929
- Replaced the "Download Latest Release" badge with an "Available Downloads" badge in `README.md`
3030
- Updated the `README.md` "Available Downloads" section with a "Quick Picks" subsection and improved layout

.github/workflows/release.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,52 @@ jobs:
6060
- name: Check out code
6161
uses: actions/checkout@v6
6262

63+
- name: Prepare release body
64+
id: release_body
65+
if: ${{ !contains(env.TAG, '-alpha') && !contains(env.TAG, '.alpha') && !contains(env.TAG, '-beta') && !contains(env.TAG, '.beta') && !contains(env.TAG, '-rc') && !contains(env.TAG, '.rc') }}
66+
shell: bash
67+
run: |
68+
set -euo pipefail
69+
70+
source_body=".github/releases/${TAG}.md"
71+
output_body="$RUNNER_TEMP/release-body.md"
72+
73+
if [[ ! -f "$source_body" ]]; then
74+
echo "::error::Release notes file not found: $source_body"
75+
exit 1
76+
fi
77+
78+
{
79+
echo "## Changelog"
80+
echo
81+
awk '
82+
NR == 1 && /^# / { next }
83+
!started && /^[[:space:]]*$/ { next }
84+
{ started = 1; print }
85+
' "$source_body"
86+
} > "$output_body"
87+
88+
echo "path=$output_body" >> "$GITHUB_OUTPUT"
89+
90+
- name: Create GitHub prerelease
91+
if: ${{ env.ACT != 'true' && (contains(env.TAG, '-alpha') || contains(env.TAG, '.alpha') || contains(env.TAG, '-beta') || contains(env.TAG, '.beta') || contains(env.TAG, '-rc') || contains(env.TAG, '.rc')) }}
92+
uses: softprops/action-gh-release@v2
93+
with:
94+
tag_name: ${{ env.TAG }}
95+
name: "Server List Explorer ${{ env.TAG }}"
96+
generate_release_notes: true
97+
prerelease: true
98+
overwrite_files: true
99+
63100
- name: Create GitHub release
64-
if: env.ACT != 'true'
101+
if: ${{ env.ACT != 'true' && !contains(env.TAG, '-alpha') && !contains(env.TAG, '.alpha') && !contains(env.TAG, '-beta') && !contains(env.TAG, '.beta') && !contains(env.TAG, '-rc') && !contains(env.TAG, '.rc') }}
65102
uses: softprops/action-gh-release@v2
66103
with:
67104
tag_name: ${{ env.TAG }}
68105
name: "Server List Explorer ${{ env.TAG }}"
69106
generate_release_notes: false
70-
body_path: .github/releases/${{ env.TAG }}.md
71-
prerelease: ${{ contains(env.TAG, '-alpha') || contains(env.TAG, '.alpha') || contains(env.TAG, '-beta') || contains(env.TAG, '.beta') || contains(env.TAG, '-rc') || contains(env.TAG, '.rc') }}
107+
body_path: ${{ steps.release_body.outputs.path }}
108+
prerelease: false
72109
overwrite_files: true
73110

74111
build-jars:

0 commit comments

Comments
 (0)