1 2 3 4 5 6 7 8 9
#!/bin/bash VERSION=$1 if [ -z "$VERSION" ]; then echo "Expected patch, minor or major" exit 1 fi clog --$VERSION && git add CHANGELOG.md && git commit -m "Updated changelog" && cargo release $VERSION