File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1+ 0.1.2
Original file line number Diff line number Diff line change 6565 version=$( git describe --tags --abbrev=0 | sed -e ' s/^v//' )
6666fi
6767
68- gem=" $( printf ' %s-%s.gem' " $GEM_NAME " " $version " ) "
68+ if [ -z " $version " ]
69+ then
70+ gem=" $( ls " $here " /../" $GEM_NAME " -* .gem | tail -1) "
71+ else
72+ gem=" $( printf ' %s/../%s-%s.gem' " $here " " $GEM_NAME " " $version " ) "
73+ fi
74+
75+ if [ ! -f " $gem " ]
76+ then
77+ printf ' No gem file found: %s\n' " $gem " >&2
78+ exit 1
79+ fi
80+
6981if [[ " ${TRACE:- false} " == true || " ${ACTIONS_STEP_DEBUG:- false} " == true ]]
7082then
7183 printf " DEBUG: [%s] Building And Publishing %s to %s\n" " $just_me " " $gem " " $gem_host " >&2
7284fi
7385
7486bundle exec gem build
75- bundle exec gem push -k " $gem_key " --host " $gem_host " " $gem "
87+ bundle exec gem push -k " $gem_key " --host " $gem_host " " $( basename " $ gem" ) "
7688
7789# vim: set foldmethod=marker et ts=4 sts=4 sw=4 ft=bash :
You can’t perform that action at this time.
0 commit comments