mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-24 06:19:37 +00:00
0897c8eebd
Release Notes: - N/A
21 lines
398 B
Bash
Executable file
21 lines
398 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
source script/lib/deploy-helpers.sh
|
|
|
|
if [[ $# != 1 ]]; then
|
|
echo "Usage: $0 <production|staging>"
|
|
exit 1
|
|
fi
|
|
environment=$1
|
|
tag="$(tag_for_environment $environment)"
|
|
|
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
|
if [ "$branch" != "main" ]; then
|
|
echo "You must be on main to run this script"
|
|
exit 1
|
|
fi
|
|
|
|
git pull --ff-only origin main
|
|
git tag -f $tag
|
|
git push -f origin $tag
|