- support cant_return #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release gems | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v* | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Fetch current tag as annotated. See https://github.com/actions/checkout/issues/290 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Install Ragel | |
run: | | |
sudo apt-get update | |
sudo apt-get install ragel | |
- name: Generate parser files and run tests | |
run: | | |
bundle exec rake test | |
- name: Configure RubyGems Credentials | |
uses: rubygems/configure-rubygems-credentials@main | |
- name: Publish to RubyGems | |
run: | | |
gem install gem-release | |
gem release ruby-next-parser |