Skip to content

Publish Gem

Publish Gem #3

Workflow file for this run

# 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