-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 911 Bytes
/
publish-gem.yml
File metadata and controls
34 lines (29 loc) · 911 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
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to rubygems.org in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/Xquik-dev/x-twitter-scraper-ruby/actions/workflows/publish-gem.yml
name: Publish Gem
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
name: publish
runs-on: ubuntu-latest
environment: rubygems
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: |-
bundle install
- name: Configure trusted publishing credentials
uses: rubygems/configure-rubygems-credentials@v1
- name: Publish to RubyGems.org
run: |
bash ./bin/publish-gem