Sha256: 7afdd942b58bee95c6391f5ff64c85e56687867a9f4bac7ace640e08bbf23031

Contents?: true

Size: 692 Bytes

Versions: 5

Compression:

Stored size: 692 Bytes

Contents

name: Publish Ruby Gem

on:
  push:
    branches: [ master ]
permissions:
  contents: read

jobs:
  build:
    name: Build and Publish
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v3
      - name: Set up Ruby 2.6
        uses: actions/setup-ruby@v1
        with:
          version: 2.6.x
      - 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_API_KEY}}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simplycop-1.12.2 .github/workflows/publish_gem.yml
simplycop-1.12.1 .github/workflows/publish_gem.yml
simplycop-1.12.0 .github/workflows/publish_gem.yml
simplycop-1.11.0 .github/workflows/publish_gem.yml
simplycop-1.10.0 .github/workflows/publish_gem.yml