.github/workflows/publish.yml in archivesspace-client-0.1.12 vs .github/workflows/publish.yml in archivesspace-client-0.2.0
- old
+ new
@@ -21,10 +21,10 @@
ruby-version: 2.7
rubygems: latest
- name: Release Gem
run: |
- VERSION=$(ruby -e "puts eval(File.read('$GEM_NAME.gemspec')).version")
+ VERSION=$(bundle exec rake version)
GEM_VERSION=$(gem list --exact --remote $GEM_NAME)
# Publish to RubyGems.org
if [ "${GEM_VERSION}" != "$GEM_NAME (${VERSION})" ]; then
gem build $GEM_NAME.gemspec