Skip to content

Commit 68e07c1

Browse files
committed
Automatically publish release (#416)
1 parent 90ac818 commit 68e07c1

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
11
name: Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
67

78
jobs:
89
release:
9-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1011
steps:
1112
- name: Checkout
1213
uses: actions/checkout@v3
13-
14+
1415
- name: Set up Ruby
1516
uses: ruby/setup-ruby@v1
1617
with:
1718
ruby-version: 3.1
1819
bundler-cache: true
19-
20+
2021
- name: Test
2122
run: bundle exec rake
22-
23+
2324
- name: Release
2425
run: bundle exec rake release
2526
env:
2627
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_TOKEN }}
28+
29+
gh-release:
30+
runs-on: ubuntu-22.04
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
35+
- uses: softprops/action-gh-release@v1
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
generate_release_notes: true

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
stale:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- uses: actions/stale@v5
1212
with:

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
rubocop:
1313
name: Rubocop
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v3
@@ -25,7 +25,7 @@ jobs:
2525

2626
rspec:
2727
name: Rspec ruby-${{ matrix.ruby }}
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-22.04
2929
needs: rubocop
3030
strategy:
3131
matrix:
@@ -56,7 +56,7 @@ jobs:
5656

5757
report:
5858
name: Allure report
59-
runs-on: ubuntu-20.04
59+
runs-on: ubuntu-22.04
6060
needs: rspec
6161
if: always()
6262
steps:

0 commit comments

Comments
 (0)