-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (35 loc) · 939 Bytes
/
gem.yaml
File metadata and controls
35 lines (35 loc) · 939 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: Publish Ruby Gem
on: # yamllint disable-line rule:truthy
workflow_call:
workflow_dispatch:
jobs:
publish_gem:
name: Publish the gem to registries
runs-on: ubuntu-latest
strategy:
matrix:
registry:
- key: rubygems
secret: RUBYGEMS_TOKEN
steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.1
bundler-cache: false
-
name: Publish to ${{ matrix.registry }}
env:
TRACE: ${{ secrets.ACTIONS_STEP_DEBUG || 'false' }}
GEM_NAME: linear-cli
GEM_TOKEN: ${{ secrets[matrix.registry.secret] }}
REGISTRY: ${{ matrix.registry.key }}
run: |
bundle install
TRACE="$TRACE" GEM_TOKEN="$GEM_TOKEN" ./ci/publish-gem.sh "$REGISTRY"
shell: bash