-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (29 loc) · 867 Bytes
/
push_gem.yml
File metadata and controls
37 lines (29 loc) · 867 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
36
37
name: Push Gem
on:
workflow_dispatch:
permissions:
contents: read
jobs:
push:
if: github.repository == 'rubyatscale/singed'
runs-on: ubuntu-latest
environment:
name: rubygems.org
url: https://rubygems.org/gems/singed
permissions:
contents: write
id-token: write
steps:
# Set up
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Ruby
uses: ruby/setup-ruby@2e007403fc1ec238429ecaa57af6f22f019cc135 # v1.234.0
with:
bundler-cache: true
ruby-version: ruby
# Release
- uses: rubygems/release-gem@9e85cb11501bebc2ae661c1500176316d3987059 # v1