-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deploy): deploiement de l'artefact dans github registry
- Loading branch information
Showing
4 changed files
with
27 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
echo "version = $1" | ||
|
||
# Get version number from version tag | ||
JAR_VERSION=`echo $1 | cut -d'v' -f2` | ||
echo "jar = $JAR_VERSION" | ||
|
||
# Set new library version in pom.xml using mvn versions:set command | ||
# These new pom.xml and changelog.md generated by @semantic-release/changelog | ||
# will be commit it by @semantic-release/git | ||
mvn versions:set -DnewVersion=$JAR_VERSION && | ||
|
||
# Package the new library version and copy it to release folder | ||
# These files will be upload to github by @semantic-release/github | ||
java -version | ||
mvn -B deploy -DskipTests && | ||
mkdir release && | ||
cp target/opt-logging-*.jar release |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters