Sha256: 0a8b65f3dc5de502d9bbcab56982003fedb5fcc8dde94fc6bcb8e5b7c2a3b9ab

Contents?: true

Size: 786 Bytes

Versions: 2

Compression:

Stored size: 786 Bytes

Contents

name: Ruby Gem

on:
  push:
    branches:
      - master
    paths:
      - lib/version.rb

jobs:
  build:
    name: Build and publish
    runs-on: ubuntu-latest
    environment: master
    permissions:
      contents: read
      packages: write

    steps:
      - uses: actions/checkout@v3
      - name: Set up Ruby 3.2
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2.2

      - name: Publish to RubyGems
        run: |
          mkdir -p $HOME/.gem
          touch $HOME/.gem/credentials
          chmod 0600 $HOME/.gem/credentials
          printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
          gem build *.gemspec
          gem push *.gem
        env:
          GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
idempotent-request-0.2.1 .github/workflows/rubygems.yml
idempotent-request-0.2.0 .github/workflows/rubygems.yml