From 2fc521b1d3792ca1aabc6fe1dfbc36f7312f9497 Mon Sep 17 00:00:00 2001 From: Nathan Downs Date: Tue, 2 Jul 2019 10:23:42 -0700 Subject: [PATCH] Only move the latest link for full versions --- scripts/deploy.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 799371b9..5195fc90 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -24,9 +24,11 @@ fi cp -r $DIST $VERSION git add $VERSION -rm latest -ln -s $VERSION latest -git add latest +if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + rm latest + ln -s $VERSION latest + git add latest +fi git commit -q -m "Publish v$VERSION" git push origin $PUBLISH_BRANCH