-
-
Notifications
You must be signed in to change notification settings - Fork 329
37 lines (32 loc) · 887 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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/action-publish-rubygem@v1.0.0
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/action-create-github-release@v1.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}