diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e90d1aa --- /dev/null +++ b/.github/workflows/release.yml @@ -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