Skip to content

Commit

Permalink
Merge pull request #78 from alleslabs/ignore-preview-build
Browse files Browse the repository at this point in the history
Ignore building step
  • Loading branch information
evilpeach authored Jan 12, 2023
2 parents 2d6a19d + 7853fa7 commit 48f4af9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Features

- [#78](https://github.com/alleslabs/celatone-frontend/pull/78) Ignore building step when branch is not main
- [#62](https://github.com/alleslabs/celatone-frontend/pull/62) Add footer
- [#71](https://github.com/alleslabs/celatone-frontend/pull/71) Add search bar at the top (currently support only contract address and code id)
- [#69](https://github.com/alleslabs/celatone-frontend/pull/69) Add execute table in contract details page
Expand Down
14 changes: 14 additions & 0 deletions ignore-step.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# This script will exit if the branch is not main on Vercel production deploys

if [[ "$VERCEL_GIT_COMMIT_REF" != "main" ]] ; then
# Don't build
echo "🛑 - Build cancelled"
exit 0;

else
# Proceed with the build
echo "✅ - Build can proceed"
exit 1;
fi

1 comment on commit 48f4af9

@vercel
Copy link

@vercel vercel bot commented on 48f4af9 Jan 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.