script/release in cloudcannon-jekyll-1.6.1 vs script/release in cloudcannon-jekyll-2.0.0
- old
+ new
@@ -9,14 +9,14 @@
# Build the new gem
rm -rf cloudcannon-jekyll-*.gem
gem build -q cloudcannon-jekyll.gemspec
-# Ensure we're on the master branch
+# Ensure we're on the main branch
-(git branch | grep -q '* master') || {
- echo "Only release from the master branch."
+(git branch | grep -q '* main') || {
+ echo "Only release from the main branch."
exit 1
}
# Figure out what version we're releasing
@@ -32,8 +32,8 @@
}
# Push tag and upload new gem
git tag "$tag" &&
- git push origin master &&
+ git push origin main &&
git push origin "$tag" &&
gem push cloudcannon-jekyll-*.gem