Sha256: e12812a9c42c582752955a4dd812f215c9511bf40c34dfd0fb0af43b9a756bd7

Contents?: true

Size: 1.47 KB

Versions: 58

Compression:

Stored size: 1.47 KB

Contents

name: Release

on:
  push:
    tags:
      - "v*"

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
      - run: bundle exec rake

  release:
    needs: build
    name: Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Generate Changelog
        run: |
          # Get version from github ref (remove 'refs/tags/' and prefix 'v')
          version="${GITHUB_REF#refs/tags/v}"
          npx changelog-parser CHANGELOG.md | jq -cr ".versions | .[] | select(.version == \"$version\") | .body" > ${{ github.workflow }}-CHANGELOG.txt

      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          body_path: ${{ github.workflow }}-CHANGELOG.txt
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

  publish:
    needs: [build, release]
    name: Publish
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1

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

Version data entries

58 entries across 58 versions & 18 rubygems

Version Path
quicktravel_client-4.7.0 .github/workflows/release.yml
tenants_helper-0.3.0 .github/workflows/release.yml
pansophy-1.3.0 .github/workflows/release.yml
active_setting-0.3.0 .github/workflows/release.yml
humanized_id-0.4.0 .github/workflows/release.yml
input_reader-0.4.0 .github/workflows/release.yml
quicktravel_client-4.6.0 .github/workflows/release.yml
table_creator-0.4.0 .github/workflows/release.yml
sealink-param-validation-0.4.0 .github/workflows/release.yml
sensitive_data_filter-0.8.0 .github/workflows/release.yml
inferred_crumpets-0.7.0 .github/workflows/release.yml
queryable_collection-0.4.0 .github/workflows/release.yml
money_extensions-1.5.0 .github/workflows/release.yml
activerecord_null_object-0.8.0 .github/workflows/release.yml
rails_core_extensions-0.15.0 .github/workflows/release.yml
rails_core_extensions-0.14.0 .github/workflows/release.yml
background_worker-0.9.0 .github/workflows/release.yml
background_worker-0.8.1 .github/workflows/release.yml
background_worker-0.7.0 .github/workflows/release.yml
background_worker-0.6.0 .github/workflows/release.yml