Skip to content

Commit

Permalink
improve release script to ensure we use .env.production when doing re…
Browse files Browse the repository at this point in the history
…lease
  • Loading branch information
shukebeta committed May 23, 2024
1 parent a08c83b commit f499d1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if ! [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: Invalid version format. It should be in the format '[number].[number].[number]'."
exit 1
fi
mv .env .env.backup
cp .env.production .env

RELEASE_NOTE=$2

Expand All @@ -46,6 +48,7 @@ git tag -a "$VERSION" -m "$RELEASE_NOTE"
# Push the changes and the new tag to the remote repository
git push origin master
git push origin "$VERSION"
mv .env.backup .env

echo "Release process completed successfully for version $VERSION (tag: $VERSION)"
echo "Changes and the new tag have been pushed to the remote repository."

0 comments on commit f499d1d

Please sign in to comment.