Makefile in smartystreets_ruby_sdk-5.14.14 vs Makefile in smartystreets_ruby_sdk-5.14.17
- old
+ new
@@ -1,8 +1,7 @@
#!/usr/bin/make -f
-VERSION := $(shell tagit -p --dry-run)
VERSION_FILE := lib/smartystreets_ruby_sdk/version.rb
clean:
rm -f *.gem
git checkout "$(VERSION_FILE)"
@@ -12,22 +11,18 @@
dependencies:
gem install minitest
package: clean dependencies test
- sed -i "s/0\.0\.0/$(VERSION)/g" "$(VERSION_FILE)" \
- && gem build *.gemspec \
- && git checkout "$(VERSION_FILE)"
+ sed -i "s/0\.0\.0/${VERSION}/g" "$(VERSION_FILE)" \
+ && gem build *.gemspec \
+ && git checkout "$(VERSION_FILE)"
publish: package
- chmod 0600 /root/.gem/credentials
+ mkdir -p ~/.gem
+ touch ~/.gem/credentials
+ chmod 0600 ~/.gem/credentials
+ printf -- "---\n:rubygems_api_key: ${API_KEY}\n" > ~/.gem/credentials
+ cat ~/.gem/credentials
gem push *.gem
-#####################################################################
-
-workspace:
- docker-compose run sdk /bin/sh
-
-release:
- docker-compose run sdk make publish && tagit -p && git push origin --tags
-
-.PHONY: clean test dependencies package publish workspace release
+.PHONY: clean test dependencies package publish