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 6ea6958
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 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 }}
9 changes: 6 additions & 3 deletions .github/workflows/ruby.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ name: CI

"on":
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main
workflow_call:
workflow_dispatch:
schedule:
- cron: '16 4 12 * *'
workflow_dispatch:

env:
CUCUMBER_PUBLISH_QUIET: true
Expand Down

0 comments on commit 6ea6958

Please sign in to comment.