Skip to content

Commit

Permalink
Add publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed Jan 11, 2021
1 parent fd78e99 commit 292ca48
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#! /bin/bash

set -e
version=$(grep version setup.cfg | awk '{print $3}')
tag="v$version"
git tag "$tag" || printf 'WARNING: tag "%s" already exists\n' "$tag"
git push --tags
printf 'Next steps:\n'
printf '1. Create new release on Github using tag=%s title=%s\n' "v$version" "v$version"
OLDIFS="$IFS"
IFS=$'\n' changelog=( $(git-log-from-last-tag) )
IFS="$OLDIFS"
for l in "${changelog[@]}"
do
printf '\t%s\n' "$l"
done
printf '2. Github Actions kicks off automatically to release new version\n'

0 comments on commit 292ca48

Please sign in to comment.