Skip to content

Commit 6bda864

Browse files
committed
Fixing deploy script
1 parent 725cda2 commit 6bda864

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

utils/deploy.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@ fi
1414

1515
echo "Incrementing version to ${NPM_VERSION}..."
1616

17-
npm version $NPM_VERSION -m "Version bumped to %s"
17+
SITE_VERSION=`npm version $NPM_VERSION -m "Version bumped to %s"`
1818

1919
echo "Pushing version and tags..."
2020

2121
git push origin dev -q
2222
git push --tags -q
2323

24-
SITE_VERSION=`node -e "
25-
console.log(require('./package.json').version)
26-
"`
27-
2824
echo "Builing site..."
2925

3026
npm run build:prod -- --silent
@@ -39,12 +35,14 @@ git rm -r ./ -q
3935
echo "Copying new content of site..."
4036

4137
cp -r ../$DIST_PATH/* ./
42-
git add -A -q
38+
git add -A
4339

4440
echo "Publishing site..."
4541

46-
git commit -m "Version of site bumped to ${SITE_VERSION}" || rm -rf $TMP_PATH
42+
git commit -m "Version of site bumped to ${SITE_VERSION}" -q || rm -rf $TMP_PATH
4743

4844
git push origin master -q
4945

46+
echo "Makeup cleaning up..."
47+
5048
rm -rf $TMP_PATH

0 commit comments

Comments
 (0)