Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Update CI pipeline (#57)
Browse files Browse the repository at this point in the history
* Update CI pipelinw

* Fix triggers

* Remove 3.2 as fails

* Read from .ruby-version
  • Loading branch information
inverse committed Jun 8, 2023
1 parent 05d9570 commit 215bcd4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_release_pipeline.yaml
@@ -1,10 +1,11 @@
name: Test, build, and release Ruby gem

on:
pull_request:
branches: [ master ]
push:
workflow_dispatch:
branches: [master]
workflow_dispatch:
pull_request:
branches: [master]

jobs:
test:
Expand All @@ -14,7 +15,7 @@ jobs:
matrix:
ruby: [ '2.7', '3.0', '3.1' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -31,11 +32,10 @@ jobs:
needs: test
if: success() && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Setup
run: |
Expand All @@ -45,7 +45,7 @@ jobs:
id: build
run: |
bundle exec rake build
echo "::set-output name=gem_version::v$(bundle exec rake version)"
run: echo "GEM_VERSION=v$(bundle exec rake version)" >> $GITHUB_ENV
- name: Release
if: success() && github.ref == 'refs/heads/master'
Expand All @@ -67,6 +67,6 @@ jobs:
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ steps.build.outputs.gem_version }}",
ref: "refs/tags/${{ env.GEM_VERSION }}",
sha: context.sha
})

0 comments on commit 215bcd4

Please sign in to comment.