Skip to content

Commit

Permalink
Add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Dec 31, 2024
1 parent 89534da commit b44fb2b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release to RubyGems

"on":
push:
branches:
- release/*

jobs:
pre-release-check:
uses: cucumber/.github/.github/workflows/prerelease-checks.yml@main

test:
uses: ./.github/workflows/test.yml

publish-rubygem:
name: Publish Ruby Gem
needs: [pre-release-check, test]
runs-on: ubuntu-latest
environment: Release
steps:
- uses: actions/checkout@v4
- uses: cucumber/[email protected]
with:
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}

create-github-release:
name: Create GitHub Release and Git tag
needs: publish-rubygem
runs-on: ubuntu-latest
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: cucumber/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b44fb2b

Please sign in to comment.