Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deepgits authored Dec 6, 2024
1 parent 5d0b551 commit f9dde28
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,27 @@ on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-rc*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true

- name: Validate Gem Specification
run: gem specification your_gem.gemspec
- name: Install dependencies
run: bundle install

- name: Build and Publish Gem
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
gem build your_gem.gemspec
gem push your_gem-*.gem
- name: Confirm Publish
run: gem list | grep your_gem

gem build superfast.gemspec
gem push superfast-*.gem

0 comments on commit f9dde28

Please sign in to comment.