Sha256: 47716a86efb553bb1ffea947eeff2fb3f6f0f6e9d5cc0eba6e84c8c15ca75f11

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

name: release

on:
  push:
    branches:
      - main

jobs:
  check:
    name: Run format & lint & build check
    uses: dashbrains/rubocop-config/.github/workflows/lint_format.yml@main

  release-please:
    runs-on: ubuntu-latest
    needs: [ check ]
    permissions:
      contents: write
      pull-requests: write
    steps:
      - uses: GoogleCloudPlatform/release-please-action@v4
        id: release
        with:
          release-type: ruby
          token: "${{ secrets.PAT_TOKEN }}"
      - uses: actions/checkout@v4
        if: ${{ steps.release.outputs.release_created }}
      - uses: ruby/setup-ruby@v1
        if: ${{ steps.release.outputs.release_created }}
      - run: bundle install
        if: ${{ steps.release.outputs.release_created }}
      - name: publish gem
        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}}"
        if: ${{ steps.release.outputs.release_created }}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dashbrains-rubocop-config-1.0.6 .github/workflows/release.yml
dashbrains-rubocop-config-1.0.5 .github/workflows/release.yml
dashbrains-rubocop-config-1.0.4 .github/workflows/release.yml
dashbrains-rubocop-config-1.0.3 .github/workflows/release.yml