Skip to content

Commit

Permalink
Just slam the version in there
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Jul 9, 2022
1 parent f18cb5b commit 407c4cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ jobs:
run: |
if [[ "$GITHUB_REF" = refs/heads/* ]]; then
export VERSIONING_GIT_BRANCH=${GITHUB_REF#refs/heads/};
exit 1
elif [[ "$GITHUB_REF" = refs/tags/* ]]; then
export VERSIONING_GIT_TAG=${GITHUB_REF#refs/tags/};
export VERSIONING_GIT_TAG=${GITHUB_REF#refs/tags/v};
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$VERSIONING_GIT_TAG
elif [[ "$GITHUB_REF" = refs/pull/*/merge ]]; then
export VERSIONING_GIT_BRANCH=${GITHUB_REF#refs/};
VERSIONING_GIT_BRANCH=${VERSIONING_GIT_BRANCH%/merge};
VERSIONING_GIT_BRANCH=${GITHUB_REF#refs/};
export VERSIONING_GIT_BRANCH=${VERSIONING_GIT_BRANCH%/merge};
exit 1
fi
mvn -B --no-transfer-progress clean deploy -Possrh
git checkout pom.xml
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>dev.guardrail</groupId>
<artifactId>guardrail-maven-plugin</artifactId>
<version>0.66.0</version>
<version>0.0.0</version> <!-- Overridden by version:set pre-deploy -->
<packaging>maven-plugin</packaging>

<name>guardrail-maven-plugin</name>
Expand Down

0 comments on commit 407c4cb

Please sign in to comment.