diff options
| author | a14m <[email protected]> | 2020-12-16 13:24:55 +0100 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-16 15:40:38 +0100 |
| commit | f10893d25908cc55b612498b5506430445d152ea (patch) | |
| tree | a8199befb9b3817a68ca1dac570862e00354009e /.builds | |
| parent | 9ca5a4d472f6d6b147d5cf8b3f1181d5d9e7a044 (diff) | |
Add release step for ruby
Diffstat (limited to '.builds')
| -rw-r--r-- | .builds/ruby.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.builds/ruby.yml b/.builds/ruby.yml index eade737..5ba4f1e 100644 --- a/.builds/ruby.yml +++ b/.builds/ruby.yml @@ -8,6 +8,9 @@ packages: sources: - https://git.sr.ht/~a14m/game-of-life +secrets: + - 3bf42fd4-1985-48db-8790-1f61cde29671 + tasks: - build: | cd game-of-life/CLI/ruby @@ -20,3 +23,17 @@ tasks: - lint: | cd game-of-life/CLI/ruby bundle exec rubocop + + - release: | + set +x + cd game-of-life/CLI/ruby + REF=`git describe --exact-match --tags HEAD ||:` + if [[ ! `echo $REF | awk '/^ruby\/v.*$/'` ]]; then + echo "Skipping release step. no matching tag" + exit 0 + fi + echo "Publishing release $REF" + bundle exec rake clean + bundle exec rake clobber + bundle exec rake build + bundle exec gem push pkg/terminal_game_of_life-*.gem |
