Skip to content

Commit 21bb8a9

Browse files
committed
build: Maintain 'latest' release with stable JAR names for download sites
1 parent 6d6ce0d commit 21bb8a9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,29 @@ jobs:
4949
bungee/build/libs/connect-bungee.jar
5050
LICENSE
5151
52+
# Also update "latest" release with stable file names for download sites
53+
- name: Update Latest Release
54+
if: github.event_name == 'release'
55+
uses: softprops/action-gh-release@v1
56+
with:
57+
tag_name: latest
58+
name: "Latest Release (${{ github.ref_name }})"
59+
prerelease: false
60+
files: |
61+
spigot/build/libs/connect-spigot.jar
62+
velocity/build/libs/connect-velocity.jar
63+
bungee/build/libs/connect-bungee.jar
64+
LICENSE
65+
body: |
66+
Latest stable release.
67+
68+
**Version:** ${{ github.ref_name }}
69+
70+
Download links (stable URLs):
71+
- [connect-spigot.jar](https://github.com/${{ github.repository }}/releases/download/latest/connect-spigot.jar)
72+
- [connect-velocity.jar](https://github.com/${{ github.repository }}/releases/download/latest/connect-velocity.jar)
73+
- [connect-bungee.jar](https://github.com/${{ github.repository }}/releases/download/latest/connect-bungee.jar)
74+
5275
# For branch push: create/update pre-release
5376
- name: Prepare Pre-Release Artifacts
5477
if: github.event_name == 'push'

0 commit comments

Comments
 (0)