Skip to content

Commit

Permalink
switch to trusted publisher release action
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Cutrer <cody@cutrer.us>
  • Loading branch information
ccutrer committed Dec 29, 2023
1 parent e172b50 commit 4ea2839
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ concurrency:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
outputs:
new_version: ${{ steps.bump_version.outputs.new_version }}
steps:
Expand Down Expand Up @@ -58,12 +61,8 @@ jobs:
bin/rake changelog[${{ env.OLD_VERSION }},${{ env.NEW_VERSION }},new_changes.md]
git add Gemfile.lock CHANGELOG.md USAGE.md templates .known_good_references
- name: Release Gem
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: |
git commit --amend --no-edit
bin/rake release || (git status; false)
- uses: rubygems/release-gem@v1
- name: Create Github Release
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 4ea2839

Please sign in to comment.