Skip to content

Commit

Permalink
Github release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Oct 21, 2024
1 parent a8b62d8 commit dbfd3ae
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release to RubyGems

on:
push:
tags:
- 'v*.*.*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Build gem
run: gem build datagrid.gemspec

- name: Push gem to RubyGems
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: gem push datagrid-*.gem

0 comments on commit dbfd3ae

Please sign in to comment.