We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4afa8f + 9595b4a commit a591f83Copy full SHA for a591f83
1 file changed
.github/workflows/release.yml
@@ -0,0 +1,33 @@
1
+name: Release
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
7
+jobs:
8
+ Release:
9
+ name: Release to RubyGems
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ packages: write
13
+ contents: read
14
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ bundler-cache: true
21
+ ruby-version: 2.6
22
+ - run: bundle install
23
24
+ - name: Publish to RubyGems
25
+ run: |
26
+ mkdir -p $HOME/.gem
27
+ touch $HOME/.gem/credentials
28
+ chmod 0600 $HOME/.gem/credentials
29
+ printf -- "---\n:rubygems_api_key: ${RUBY_GEMS_API_KEY}\n" > $HOME/.gem/credentials
30
+ gem build *.gemspec
31
+ gem push *.gem
32
+ env:
33
+ RUBY_GEMS_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
0 commit comments