Skip to content

Commit

Permalink
Use official Ruby gem for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jan 25, 2024
1 parent 197bde9 commit ddde7bc
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ on: release
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write # mandatory for trusted publishing
contents: write # required for `rake release` to push the release tag
steps:
- uses: actions/checkout@v4
- name: Release dotenv
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RELEASE_COMMAND: rake dotenv:release
- name: Release dotenv-rails
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RELEASE_COMMAND: rake dotenv-rails:release
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- uses: rubygems/release-gem@v1

0 comments on commit ddde7bc

Please sign in to comment.