Skip to content

Commit

Permalink
Repair 'deploy.sh': use elm.json instead of elm-package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Sep 3, 2018
1 parent 301ebd8 commit 4b3ed84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ done
rm -f index.html

## Get version number
version=$(cat elm-package.json | grep '"version"' | sed 's/\([^0-9]*\)\([0-9]\.[0-9]\.[0-9]\)\(.*\)/\2/')
version=$(cat elm.json | grep '"version"' | sed 's/\([^0-9]*\)\([0-9]\.[0-9]\.[0-9]\)\(.*\)/\2/')
if [ -z "$version" ]; then
echo "unable to capture package version"
exit 1
Expand All @@ -27,8 +27,9 @@ else
fi

## Create tag and publish
git tag -a $version -m "release version $version" && git push origin HEAD --tags
elm package publish || exit 1
git tag -d $version
git tag -a $version -m "release version $version" && git push origin $version
elm publish || exit 1

## Deploy examples
git checkout "gh-pages" || exit 1
Expand Down

0 comments on commit 4b3ed84

Please sign in to comment.