Sha256: 4a9fcb7597cb2ad40ef30f7985f1ebb4ed3db2a6d6be1e2e4e6226b3e37efe4a

Contents?: true

Size: 1.22 KB

Versions: 17

Compression:

Stored size: 1.22 KB

Contents

name: Release Ruby Gem

on:
  release:
    types: [published]
jobs:
  build:
    runs-on: ubuntu-latest
    env:
      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby 2.6
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.6.x

    - name: Build and test
      run: |
        gem install bundler
        bundle install
        bundle exec rspec spec

    - name: Code Climate Test Reporter
      uses: aktions/codeclimate-test-reporter@v1
      with:
        codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
        command: after-build

    - 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}}"

    - name: Notify Slack
      uses: adamkdean/simple-slack-notify@1.0.4
      with:
        channel: '#ops'
        username: 'GitHub Actions'
        color: 'good'
        text: 'A new version of the bolognese gem has been released.'

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bolognese-1.9.18 .github/workflows/release.yml
bolognese-1.9.17 .github/workflows/release.yml
bolognese-1.9.14 .github/workflows/release.yml
bolognese-1.9.13 .github/workflows/release.yml
bolognese-1.9.12 .github/workflows/release.yml
bolognese-1.9.11 .github/workflows/release.yml
bolognese-1.9.10 .github/workflows/release.yml
bolognese-1.9.9 .github/workflows/release.yml
bolognese-1.9.8 .github/workflows/release.yml
bolognese-1.9.7 .github/workflows/release.yml
bolognese-1.9.6 .github/workflows/release.yml
bolognese-1.9.5 .github/workflows/release.yml
bolognese-1.9.4 .github/workflows/release.yml
bolognese-1.9.3 .github/workflows/release.yml
bolognese-1.9.2 .github/workflows/release.yml
bolognese-1.9 .github/workflows/release.yml
bolognese-1.8.18 .github/workflows/release.yml