diff --git a/serverless/release.sh b/serverless/release.sh index aa5f06a..896007c 100755 --- a/serverless/release.sh +++ b/serverless/release.sh @@ -51,10 +51,10 @@ if [ "$PROD_RELEASE" = true ] ; then exit 1 fi - # Make sure we are on master + # Make sure we are on main BRANCH=$(git rev-parse --abbrev-ref HEAD) - if [ $BRANCH != "master" ]; then - echo "Not on master, aborting" + if [ $BRANCH != "main" ]; then + echo "Not on main, aborting" exit 1 fi @@ -66,7 +66,7 @@ if [ "$PROD_RELEASE" = true ] ; then fi # Get the latest code - git pull origin master + git pull origin main # Bump version number echo "Bumping the current version number to the desired" @@ -76,7 +76,7 @@ if [ "$PROD_RELEASE" = true ] ; then # Commit version number changes to git git add src/ template.yml README.md package.json git commit -m "Bump version from ${CURRENT_VERSION} to ${VERSION}" - git push origin master + git push origin main # Create a github release echo "Release serverless-macro-${VERSION} to github"