Skip to content

Commit

Permalink
test script
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaumik-Ashraf committed Jan 23, 2024
1 parent b483708 commit 38df5c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions publish_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@
set -e
set -x


REPO_URL=${1:-git@github.com:inferno-framework/inferno-template.git}
VERSION=$(bundle exec ./bin/inferno version)


if [ -d ./inferno-template ]; then
echo "ERROR: detected inferno-template directory, please remove or rename it to run this script."
exit 1;
fi;

REPO_URL=git@github.com:inferno-framework/inferno-template.git
VERSION="$(bundle exec ./bin/inferno version)"

git clone $REPO_URL ./inferno-template
rm -f ./inferno-template/Gemfile.lock

bundle exec ./bin/inferno new inferno-template --author 'Inferno Template' --force
bundle exec ./bin/inferno new inferno-template --author "Inferno Template" --force

git -C ./inferno-template add --all
git -C ./inferno-template commit --message "update inferno-template to v$VERSION"
Expand Down

0 comments on commit 38df5c7

Please sign in to comment.