Sha256: 7c6642b543f56a411360f5be4e4152ca1cb039d145bde5fc1765f99c8908d4ac

Contents?: true

Size: 739 Bytes

Versions: 6

Compression:

Stored size: 739 Bytes

Contents

name: Publish Gem

on:
  push:
    tags:
      - 'v*'

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        ruby: [2.7, jruby]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        submodules: true
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Run release task
      run: |
        mkdir -p ~/.gem
        cat << EOF > ~/.gem/credentials
        ---
        :github: Bearer ${{secrets.GITHUB_TOKEN}}
        :rubygems_api_key: ${{secrets.RUBYGEMS_API_KEY}}
        EOF
        chmod 600 ~/.gem/credentials
        bundle exec rake release[remote]
        rm -f ~/.gem/credentials

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snappy-0.4.0-java .github/workflows/publish.yml
snappy-0.4.0 .github/workflows/publish.yml
snappy-0.3.0-java .github/workflows/publish.yml
snappy-0.3.0 .github/workflows/publish.yml
snappy-0.2.0-java .github/workflows/publish.yml
snappy-0.2.0 .github/workflows/publish.yml