Skip to content

Commit

Permalink
add check for curse token
Browse files Browse the repository at this point in the history
  • Loading branch information
pcal43 committed Sep 26, 2022
1 parent 304a009 commit e88d479
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ if [ -z "${MODRINTH_TOKEN:-}" ]; then
exit 1
fi

if [ -z "${CURSEFORGE_TOKEN:-}" ]; then
echo "Set CURSEFORGE_TOKEN"
exit 1
fi


CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "${CURRENT_BRANCH}" != 'main' ]; then
echo "Releases must be performed on main. Currently on '${CURRENT_BRANCH}'"
Expand Down

0 comments on commit e88d479

Please sign in to comment.