Skip to content

Commit 1759851

Browse files
committed
attempt to fix release workflow
1 parent 2b52a9f commit 1759851

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.bumpversion.cfg

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ current_version = 6.1.0
33
commit = True
44
tag = True
55
tag_name = v{new_version}
6-
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-SNAPSHOT)?
7-
serialize =
8-
{major}.{minor}.{patch}-SNAPSHOT
6+
7+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
8+
9+
serialize =
10+
{major}.{minor}.{patch}
911

1012
[bumpversion:file:pom.xml]
1113
search = <version>{current_version}</version>
1214
replace = <version>{new_version}</version>
15+
16+
[bumpversion:file:./pom.xml]
17+
search = <tag>v{current_version}</tag>
18+
replace = <tag>v{new_version}</tag>

.github/ISSUE_TEMPLATE/new_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ body:
3030
3131
- [ ] verify that `~/.m2/settings.xml` exists (https://central.sonatype.org/publish/publish-portal-maven/#credentials)
3232
- contains user token credentials from https://central.sonatype.com/ (generate token at https://central.sonatype.org/publish/generate-portal-token/)
33-
- [ ] Set release version: `bump2version --new-version 6.0.1 release --dry-run --verbose`
33+
- [ ] Set release version: `bump2version patch --dry-run --verbose`
3434
- [ ] Push changes and tag: `git push origin master --follow-tags`
3535
- [ ] wait for github actions to pass
3636
- [ ] `mvn clean deploy -Pgpg`

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<groupId>io.github.git-commit-id</groupId>
1111
<artifactId>git-commit-id-plugin-core</artifactId>
1212
<packaging>jar</packaging>
13-
<version>6.1.0-SNAPSHOT</version>
13+
<version>6.1.0</version>
1414
<name>Git Commit Id Plugin Core</name>
1515
<url>https://github.com/git-commit-id/git-commit-id-plugin-core</url>
1616

@@ -25,7 +25,7 @@
2525
<url>git@github.com:git-commit-id/git-commit-id-plugin-core.git</url>
2626
<connection>scm:git@github.com:git-commit-id/git-commit-id-plugin-core</connection>
2727
<developerConnection>scm:git:git@github.com:git-commit-id/git-commit-id-plugin-core.git</developerConnection>
28-
<tag>v6.0.0</tag>
28+
<tag>v6.1.0</tag>
2929
</scm>
3030

3131
<properties>

0 commit comments

Comments
 (0)