Skip to content

Commit

Permalink
Merge pull request #60 from block/myron/update-release-action
Browse files Browse the repository at this point in the history
Rename `push_gem.yaml` to `release.yaml` and update dependent actions.
  • Loading branch information
myronmarston authored Dec 10, 2024
2 parents a024588 + 973822b commit 26b7c79
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow was generated by https://github.com/rubygems/configure_trusted_publisher
name: Push Gem
name: Release

on:
workflow_dispatch:
Expand Down Expand Up @@ -35,13 +35,15 @@ jobs:
steps:
# Set up
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit

- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Checkout Git Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up Ruby
uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0
uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0
with:
working-directory: config/release
bundler-cache: true
Expand Down Expand Up @@ -72,7 +74,7 @@ jobs:

# Release
- name: Release to rubygems.org
uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1
uses: rubygems/release-gem@9e85cb11501bebc2ae661c1500176316d3987059 # v1.1.0
with:
await-release: ${{ ! inputs.dry-run }}

Expand All @@ -84,7 +86,7 @@ jobs:
branch: release-v${{ inputs.version }}
title: "Release v${{ inputs.version }}"
body: |
- [ ] Confirm the [push-gem action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) succeeded before merging
- [ ] Confirm the [release action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) succeeded before merging
- [ ] Confirm this version bump should be merged into [${{ github.ref_name }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}) or change the base branch
- [ ] Review and edit the [GitHub Draft Release](https://github.com/${{ github.repository }}/releases) (can be done after this PR is merged)
Expand Down

0 comments on commit 26b7c79

Please sign in to comment.