Skip to content

Commit 9b83823

Browse files
committed
Add $CIRCLE_TAG check to deployment
This allows us to test the CI job without creating a release.
1 parent b1656ed commit 9b83823

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,12 @@ jobs:
10461046
- run:
10471047
name: Publish artifacts on GitHub
10481048
command: |
1049+
# This safety measure allows us to run the job until here for testing.
1050+
if [ -z "$CIRCLE_TAG" ]; then
1051+
echo "Not a tag build"
1052+
exit 1
1053+
fi
1054+
10491055
TAG="$CIRCLE_TAG"
10501056
TITLE="$TAG"
10511057
BODY="The release notes are available in [CHANGELOG.md](https://github.com/CosmWasm/cosmwasm/blob/$TAG/CHANGELOG.md). For upgrading contracts also consult [MIGRATING.md](https://github.com/CosmWasm/cosmwasm/blob/$TAG/MIGRATING.md).\n\nAttached there are some build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release."

0 commit comments

Comments
 (0)