Skip to content

Commit e9a0136

Browse files
Fix release flow
1 parent 177c02f commit e9a0136

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
echo "Git tag: $RELEASE_VERSION"
3636
echo "Pom version: $POM_VERSION"
3737
38-
if [ "${RELEASE_VERSION}-SNAPSHOT" != "$POM_VERSION" ]; then
38+
if [ "$RELEASE_VERSION" != "$POM_VERSION" ]; then
3939
echo "Error: Git tag ($RELEASE_VERSION) does not match pom.xml version ($POM_VERSION)"
4040
exit 1
4141
fi
@@ -53,14 +53,6 @@ jobs:
5353
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
5454
shell: bash
5555

56-
- name: Update pom.xml to release version
57-
run: |
58-
mvn versions:set -DnewVersion=${{ env.RELEASE_VERSION }} -B -q
59-
git commit -am "Set version to ${{ env.RELEASE_VERSION }}" || echo "No changes"
60-
git push origin "HEAD:${GITHUB_REF_NAME}"
61-
env:
62-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
6456
- name: Run tests
6557
run: mvn clean verify -B
6658

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.github.computerdaddyguy</groupId>
77
<artifactId>jfiletreeprettyprinter</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
8+
<version>0.0.1</version>
99

1010
<packaging>jar</packaging>
1111
<name>JFileTreePrettyPrinter</name>

0 commit comments

Comments
 (0)