Skip to content

Commit

Permalink
make.sh: Check tutorials branch if release build
Browse files Browse the repository at this point in the history
  • Loading branch information
bennorth committed May 20, 2021
1 parent 9b56c0b commit 64e731c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ if [ "$current_branch" = releases ]; then
>&2 echo No tag found pointing to HEAD on releases
exit 1
fi

current_tutorials_branch="$(cd pytch-tutorials && git rev-parse --abbrev-ref HEAD)"
if [ "$current_tutorials_branch" != releases ]; then
>&2 echo Top level repo is on '"releases"' branch but tutorials is not
exit 1
fi

bare_version=$(echo $current_tag | sed 's/^v//')
zipfile_name=release-"$bare_version".zip
containing_dir=releases/"$bare_version"
Expand Down

0 comments on commit 64e731c

Please sign in to comment.