Last active
November 4, 2019 15:04
-
-
Save VytautasB/a812a3a11b1c9d1c5a211392bccec87f to your computer and use it in GitHub Desktop.
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
#! /bin/bash | |
echo "Parameter $1 value is \"$1\"" |
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
#! /bin/bash | |
set -e | |
home=$( pwd ) | |
mkdir -p "$home/packages" | |
cd $1 | |
next_version=$( hub release | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') | |
artifact="$home/packages/$1-$next_version.zip" | |
zip -r $artifact "messages/", "templates/", "webroot/", "-x", "*.DS_Store" | |
hub release create -d -a $artifact -m "Release version v$next_version" "v$next_version" | |
cd $home |
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
#! /bin/bash | |
set -e | |
home=$( pwd ) | |
mkdir -p "$home/packages" | |
cd $1 | |
next_version=$( hub release | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' | sed 's/v//g') | |
artifact="$home/packages/$1-$next_version.zip" | |
zip -r $artifact . -x *.DS_Store *.git* | |
hub release create -d -a $artifact -m "Release version v$next_version" "v$next_version" | |
cd $home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment