Skip to content

Commit

Permalink
fix: Do not release docs on every commit to master (#5214)
Browse files Browse the repository at this point in the history
Copied code from `yarn-project/deploy_npm.sh` to prevent publishing docs
on every commit to master instead of just on tagged releases.
  • Loading branch information
spalladino committed Mar 14, 2024
1 parent eb69504 commit c34a299
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/deploy_netlify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ DEPLOY_OUTPUT=""

if should_release; then
# Deploy to production only on a release
if [ -z "$COMMIT_TAG" ]; then
echo "No commit tag, not deploying to npm."
exit 0
fi
DEPLOY_OUTPUT=$(netlify deploy --site aztec-docs-dev --prod)
elif [ "$1" != "master" ]; then
# Deploy preview on PRs
Expand Down

0 comments on commit c34a299

Please sign in to comment.