Skip to content

Commit

Permalink
Add release to main CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
unused committed Sep 22, 2024
1 parent df789a6 commit 24f8107
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

name: Ruby
name: Main Pipeline

on:
push:
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Run rubocop
run: bundle exec rubocop

build:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
Expand Down Expand Up @@ -58,3 +58,20 @@ jobs:
bundle install
bundle exec rake
sha1sum --check .test-map.yml.sha1
release:
if: github.ref == 'refs/heads/main'
needs: [lint, test, verify]
name: Push gem to RubyGems.org
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- uses: rubygems/release-gem@v1
18 changes: 0 additions & 18 deletions .github/workflows/push_gem.yml

This file was deleted.

0 comments on commit 24f8107

Please sign in to comment.