Skip to content

Commit e97b03a

Browse files
committed
feat: Deploy each release (tags) on GPR
1 parent 3614149 commit e97b03a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish
2+
3+
on:
4+
create:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
10+
build:
11+
name: Build + Publish
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Ruby 2.6
17+
uses: actions/setup-ruby@v1
18+
with:
19+
ruby-version: 2.6.x
20+
21+
- name: Publish to GPR
22+
run: |
23+
mkdir -p $HOME/.gem
24+
touch $HOME/.gem/credentials
25+
chmod 0600 $HOME/.gem/credentials
26+
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
27+
gem build *.gemspec
28+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
29+
env:
30+
GEM_HOST_API_KEY: ${{secrets.GITHUB_TOKEN}}
31+
OWNER: the-benchmarker

0 commit comments

Comments
 (0)