-
Notifications
You must be signed in to change notification settings - Fork 7
Publishing
fren_gor edited this page Aug 18, 2024
·
34 revisions
Note: this page is intended to be used by maintainers.
- Make sure to be working on the
dev
branch! - Update every
<version>
tag inpom.xml
files using the command
mvn org.codehaus.mojo:versions-maven-plugin:2.16.1:set -DgenerateBackupPoms=false -DprocessAllModules=true -DnewVersion=X.X.X
- Update
Versions#API_VERSION
inNMS/Common
module - Update the version in the
README
file - Open terminal in main folder and try to compile with
mvn clean package -U
. At the end of compilation, make sure that every module's version has been updated to the new one. - Push to GitHub (commit named
Update version to X.X.X
) - Wait for Jenkins to finish building
- Open pull request from
dev
tomain
(withUpdate to X.X.X
as title and the changelog as comment)
Template:
* Updated version to X.X.X
* Updated to Minecraft 1.X.X
* Updated CommandAPI to X.X.X
* Changelog
* Changelog by @user
- Merge pull request (remember to keep the changelog as comment)
- Wait for Jenkins to finish building
- On GitHub desktop:
- Checkout the
main
branch - Pull
- Open the
History
tab - Right-click the last commit and press
Create Tag...
- Call the tag as the version to publish (i.e.
X.X.X
) - Push
- Checkout the
dev
branch - Merge the
main
branch intodev
USING THE GUI - Push
- Checkout the
- Checkout the
main
branch - Open terminal in main folder and deploy to maven repo using:
mvn clean deploy -U
- Checkout the
dev
branch. This avoids making further changes on themain
branch by mistake!
- Open site folder and go to
SITE-MAIN-FOLDER/javadocs/UltimateAdvancementAPI/
- Create a folder called as the version to publish (i.e.
X.X.X
) - Do
cp -r ./build-server/main/* X.X.X/
- Open https://github.com/frengor/UltimateAdvancementAPI/wiki
- Update the old version in every maven snippet
Known pages where the update is to be done: - If configuration changed, then the Configuration page should be adjusted
- Update the version in the maven snippet in the main page
- Update the remaining parts of the main page (remember the title)
- Update the resource
Remember to use the file downloaded from Jenkins
BB-Code changelog template (use[icode]
for inline code):
[COLOR=#808080][B]Release X.X.X:[/B][/COLOR]
[LIST]
[*]Added support for Minecraft 1.X.X
[*]Updated CommandAPI to X.X.X
[*]Changelog here
[*]Changelog here (by @User)
[/LIST]
- Update the version in the maven snippet in the main page
- Update the remaining parts of the main page
- Update the resource
Remember to use the file downloaded from Jenkins
Select the loaders: Bukkit, Spigot, Paper
Select all the supported versions
Upload themojang-mapped
artifact as additional file
Markdown template:
* Added support for Minecraft 1.X.X
* Updated CommandAPI to X.X.X
* Changelog here
* Changelog here (by [User](https://github.com/user))
- Update the version in the maven snippet in the main page
- Update the remaining parts of the main page
- Update the resource
Remember to use the file downloaded from Jenkins
Select the loader: Paper
Select all the supported versions
Markdown template (or just copy it from Modrinth):
* Added support for Minecraft 1.X.X
* Updated CommandAPI to X.X.X
* Changelog here
* Changelog here (by [User](https://github.com/user))
- Post a message in the
announcements
channel
Message template:
**X.X.X Update**
Download it from:
*Modrinth:* https://modrinth.com/plugin/ultimateadvancementapi/version/X.X.X
*Spigot:* https://www.spigotmc.org/resources/95585/
*Hangar:* https://hangar.papermc.io/DevHeim/UltimateAdvancementAPI/versions/X.X.X
> **Changelog:**
> * Added support for Minecraft 1.X.X
> * Updated CommandAPI to X.X.X
> * Changelog here
> * Changelog here (by @User)
> * Sublist title:
> * Changelog here
> * Changelog here (by @User)
||@UltimateAdvancementAPI||
UltimateAdvancementAPI Wiki © 2021 fren_gor, EscanorTargaryen is licensed under CC BY-SA 4.0.
Except where otherwise noted, code snippets inside the wiki are licensed under The Unlicense.