-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcog.toml
36 lines (34 loc) · 1.12 KB
/
cog.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pre_bump_hooks = [
"""
bash -c "if ! ./gradlew build --info; then exit 1; fi"
""",
"echo 'Bumping from v{{latest}} to v{{version}}!'",
]
post_bump_hooks = [
# Update the version in gradle properties and amend last commit
"sed -i 's/version=.*/version=v{{version}}/' ./gradle.properties",
"git add ./gradle.properties",
"git commit --amend -C HEAD",
# Push to github with new tag
"git push --force",
"git push origin v{{version}}",
# Build gradle
"./gradlew clean build -Pversion=\"v{{version}}\"",
# Create changelog and make new release
"bash -c \"cog changelog -a v{{version}} -t default >> ./.templog.md\"",
"gh release create \"v{{version}}\" -F ./.templog.md -t 'ElixirBot release v{{version}}' build/libs/ElixirBot-v{{version}}-all.jar",
"rm ./.templog.md",
# Update tags
"git fetch --tags origin"
]
tag_prefix = "v"
[changelog]
path = "CHANGELOG.md"
template = "remote"
remote = "github.com"
repository = "ElixirBot"
owner = "Da_Racci"
authors = [
{ signature = "Racci", username = "Da_Racci" },
{ signature = "Da_Racci", username = "Da_Racci" }
]