Skip to content

Commit

Permalink
Bump version to match tag name as part of release
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jan 25, 2024
1 parent abf6cdd commit 751c29d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ jobs:
id-token: write # mandatory for trusted publishing
contents: write # required for `rake release` to push the release tag
steps:
- uses: actions/checkout@v4
- name: Inspect ref
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# ruby-version: ruby
# - uses: rubygems/release-gem@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- name: Bump version
run: gem bump --push --version ${GITHUB_REF_NAME#v}
- uses: rubygems/release-gem@v1
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ gemspec name: "dotenv"
gemspec name: "dotenv-rails"

gem "railties", "~> #{ENV["RAILS_VERSION"] || "7.1"}"
gem "gem-release"

group :guard do
gem "guard-rspec"
Expand Down

0 comments on commit 751c29d

Please sign in to comment.