-
-
Couldn't load subscription status.
- Fork 101
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
developintomaster, call it for exampleRelease v1.2.3and tag it asrelease; the PRs only purpose is visibility -
Ignore the PR(don't merge it via Github) and
rebasemasterdirectly ontodevelop, thenforce-push(might not need to do this, try just pushing). As a result,masteranddevelopare 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
developbranch upto date. Switch tomaster, dogit rebase develop. -
Create and push an annotated tag like
v.1.2.3with 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-tagsread 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/pingand see if you get a response
7.2. Maybe check the logs to see if any error pops up, see View the logs