Skip to content

Commit fb70992

Browse files
committed
build gem from github action
1 parent 3200e90 commit fb70992

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/build_gem.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# .github/workflows/build_gem.yml
2+
name: Build Gem
3+
4+
on:
5+
push:
6+
branches: [ main, develop ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: '3.3'
19+
20+
- name: Install bundler
21+
run: gem install bundler
22+
23+
- name: Install dependencies
24+
run: bundle install
25+
26+
- name: Build gem
27+
run: gem build your_gem.gemspec
28+
29+
- name: Show built gem
30+
run: ls -lh *.gem

0 commit comments

Comments
 (0)