Skip to content

Commit af916f5

Browse files
authored
Github Actions release workflow (#554)
* Add release workflow This should allow us to use the standard release process * Update release docs * Archive the existing changelog This will allow tooling to modify the changelog going forward. * Add guidance to changelog
1 parent d63e54c commit af916f5

File tree

6 files changed

+772
-728
lines changed

6 files changed

+772
-728
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release to RubyGems
2+
3+
on:
4+
push:
5+
branches:
6+
- release/*
7+
8+
jobs:
9+
10+
pre-release-check:
11+
uses: cucumber/.github/.github/workflows/prerelease-checks.yml@main
12+
13+
test:
14+
uses: ./.github/workflows/test.yml
15+
16+
publish-rubygem:
17+
name: Publish Ruby Gem
18+
needs: [pre-release-check, test]
19+
runs-on: ubuntu-latest
20+
environment: Release
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Publish ruby gem
26+
uses: cucumber/action-publish-rubygem@v1.0.0
27+
with:
28+
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
29+
30+
create-github-release:
31+
name: Create GitHub Release and Git tag
32+
needs: publish-rubygem
33+
runs-on: ubuntu-latest
34+
environment: Release
35+
permissions:
36+
contents: write
37+
38+
steps:
39+
- uses: actions/checkout@v3
40+
- uses: cucumber/action-create-github-release@v1.1.0
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.

0 commit comments

Comments
 (0)