# Use the second argument "release" to create an actual release.
if["$SHOULD_RELEASE" !="release"];then
echo"Not creating a release."
exit
fi
# Create the tag
# git tag -a "v${VERSION}" -m "Release build v${VERSION}"
git tag -a "v${VERSION}" -m "Release build v${VERSION}"
# # On macOS open the Github page for new releases so they can be uploaded
# if test -f "/usr/bin/open"; then
# open "https://github.com/gabek/owncast/releases/new"
# open dist
# fi
# On macOS open the Github page for new releases so they can be uploaded
iftest -f "/usr/bin/open";then
open "https://github.com/gabek/owncast/releases/new"
open dist
fi
# Docker build
# Must authenticate first: https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for-use-with-github-packages#authenticating-to-github-packages
# DOCKER_IMAGE="owncast-${VERSION}"
# echo "Building Docker image ${DOCKER_IMAGE}..."
#
# # Change to the root directory of the repository