Skip to content

Commit

Permalink
Automate the process of GitHub release creation
Browse files Browse the repository at this point in the history
Follow-up to https://github.com/rubocop/rubocop/blob/master/.github/workflows/github_release.yml.

This action will be triggered when a new tag is pushed and will
auto-fill the release notes using the relevant file.

The `rubocop-minitest` repository has essentially the same structure as the `rubocop` repository,
so it should work as is.
  • Loading branch information
koic committed Mar 2, 2025
1 parent 882255f commit 16fc2ec
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create GitHub Release

on:
push:
tags:
- "v*" # Trigger when a version tag is pushed (e.g., v1.0.0)

jobs:
create-release:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
name: RuboCop Minitest ${{ github.ref_name }}
bodyFile: relnotes/${{ github.ref_name }}.md
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 16fc2ec

Please sign in to comment.