Sha256: cf9ee7d166af8c2569a94966237ef9e3053c0bd4a19d23590e4f66162e0b731a

Contents?: true

Size: 1.22 KB

Versions: 10

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 briard gem has been released.'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
briard-2.2.7 .github/workflows/release.yml
briard-2.2.6 .github/workflows/release.yml
briard-2.2.4 .github/workflows/release.yml
briard-2.2.3 .github/workflows/release.yml
briard-2.2.1 .github/workflows/release.yml
briard-2.2 .github/workflows/release.yml
briard-2.1 .github/workflows/release.yml
briard-2.0.2 .github/workflows/release.yml
briard-2.0.1 .github/workflows/release.yml
briard-2.0 .github/workflows/release.yml