Skip to content

Commit

Permalink
Always trigger release workflow to check the build correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Dec 27, 2024
1 parent 952693d commit b29cb95
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
branches:
- main
paths:
- '.github/workflows/release.yml'
- '.ruby-version'
- '**.gemspec'
- '**Gemfile'
- 'Rakefile'
- '**.rb'
pull_request:
paths:
- '.github/workflows/release.yml'
- '.ruby-version'
- '**.gemspec'
- '**Gemfile'
- 'Rakefile'
- '**.rb'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -32,6 +49,7 @@ jobs:
- build
env:
GH_TOKEN: ${{ github.token }}
if: startsWith(github.ref, 'refs/tags/')
steps:
# Required to checkout for gh command
- uses: actions/checkout@v4
Expand All @@ -58,6 +76,8 @@ jobs:
# https://github.com/kachick/irb-power_assert/settings/environments
environment: release

if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand Down

0 comments on commit b29cb95

Please sign in to comment.