forked from whitequark/parser
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 887 Bytes
/
release.yml
File metadata and controls
35 lines (33 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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