-
-
Notifications
You must be signed in to change notification settings - Fork 91
Release a new version
Thanks to a rich pipeline, releasing a new version of the bot is fairly simple.
It mainly consists of simply pushing develop
over on master
, creating an annotated tag for the release and possibly adjusting the configuration and the Discord environment, thats it.
-
Determine the next release version (for example
v1.2.3
) -
Create a PR to merge
develop
intomaster
, call it for exampleRelease v1.2.3
and tag it asrelease
; the PRs only purpose is visibility -
Ignore the PR(don't merge it via Github) and
rebase
master
directly ontodevelop
, thenforce-push
(might not need to do this, try just pushing). As a result,master
anddevelop
are fully identical
3.1. The PR should now automatically be marked as merged by GitHub
3.2. In the meantime, the pipeline automatically started deploying the new version to the serverNote: for those who are not good with rebase, make sure to have your
develop
branch upto date. Switch tomaster
, dogit rebase develop
. -
Create and push an annotated tag like
v.1.2.3
with a short release description from the state ofmaster
4.1. The pipeline will now create a new release on GitHub
4.2. Once the release has been created, you can adjust and beautify the description, see releases Note: There's two types of tags, annotated and normal tags. We want annotated tags, to create one via intellij follow instructions in given screenshotCREATING AN ANNOTATED TAG IN INTELLIJ
PUSHING ANNOTATED TAG
git push --follow-tags
read more here: https://git-scm.com/docs/git-push
-
In case the configuration (
config.json
) changed, make sure to update it; see Edit the Config -
In case the new version requires changes on Discord, such as other permissions, new channels or roles, make sure to update them as well
-
Verify that the bot works as expected
7.1. Try/ping
and see if you get a response
7.2. Maybe check the logs to see if any error pops up, see View the logs