Skip to content

Commit ea9712c

Browse files
committed
Clean up GitHub Actions script
- only build on some pushes, but all pull requests - support manual builds via workflow_dispatch - change publish to be triggered by a GitHub release action - update to latest actions/checkout script
1 parent c65d92c commit ea9712c

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: 'master'
6+
pull_request:
7+
workflow_dispatch:
8+
release:
9+
types: published
10+
411

512
jobs:
613
build:
@@ -13,7 +20,7 @@ jobs:
1320

1421
steps:
1522
- name: repo checkout
16-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
1724

1825
- name: Set up Ruby ${{ matrix.ruby }}
1926
# https://github.com/ruby/setup-ruby
@@ -36,14 +43,14 @@ jobs:
3643
runs-on: ubuntu-latest
3744

3845
# only run if we pushed a tag
39-
if: startsWith(github.ref, 'refs/tags/v')
46+
if: github.event_name == 'release'
4047

4148
# require that the build matrix passed
4249
needs: build
4350

4451
steps:
4552
- name: repo checkout
46-
uses: actions/checkout@v2
53+
uses: actions/checkout@v4
4754

4855
- name: Set up Ruby
4956
uses: ruby/setup-ruby@v1

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v1.7.0
1+
v2.0.0
22
- Drop support for ruby 2.7
33
- Add support for ruby 3.2+
44
- Require minimum version of faraday 2.0

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.0
1+
2.0.0

0 commit comments

Comments
 (0)