Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Mullins committed Apr 1, 2017
1 parent 85ed378 commit 77e27f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .prepare_release
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

set -eo pipefail

prepare_log() {
echo "[prepare release] -- $@"
}

if [ -z "$(git tag -l --points-at HEAD)" ]; then
echo "[$(basename $0)] Skipping non-tagged commit."
prepare_log "Skipping non-tagged commit."
exit 0
fi

VERSION=$(git describe)

prepare_log "Preparing release for tagged version: $VERSION"

mkdir dist

for file in $(ls .pioenvs/**/firmware.bin); do
Expand Down

0 comments on commit 77e27f0

Please sign in to comment.