Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 0 additions & 83 deletions .github/workflows/bump_version.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/publish-package.yml

This file was deleted.

42 changes: 21 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Create GitHub Release
name: Release

on:
workflow_dispatch:
inputs:
bump-type:
type: choice
options: [patch, minor, major]
default: minor
changelog:
description: Changelog bullets (separate with $>). Leave blank to use the Unreleased notes or draft them from the commits.
type: string
push:
tags:
- "v*"
tags: ['v*']

permissions:
contents: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && 'bump' || github.ref }}

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.RMS_VERSION_MANAGER_CLIENT_ID }}
private-key: ${{ secrets.RMS_VERSION_MANAGER_CERT }}

- uses: actions/checkout@v7
with:
token: ${{ steps.app-token.outputs.token }}

- name: Create GitHub release
run: gh release create "${{ github.ref_name }}" --verify-tag --generate-notes
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
uses: RoleModel/actions/.github/workflows/release.yml@v3
with:
bump-type: ${{ inputs.bump-type }}
changelog: ${{ inputs.changelog }}
publish-gem: true
secrets: inherit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Lint with `bin/rubocop`.
Run the dummy app's server on port 3000 with `bin/dev` (set `PORT` to change it). It's a page of
popovers to try by hand.

Releases are cut from the **Bump Version** workflow in the Actions tab. It takes the version bump and
Releases are cut from the **Release** workflow in the Actions tab. It takes the version bump and
a changelog entry, then tags the release, publishes it on GitHub, and pushes the gem to RubyGems.

## Acknowledgments
Expand Down
Loading