Sha256: 46fffbaa16c45f6bac05fe923497b3a0479c6fec51e123b6f42c0eb99abc8d16

Contents?: true

Size: 1.52 KB

Versions: 4

Compression:

Stored size: 1.52 KB

Contents

# Build, test and push gems to the FreeAgent registry.
# https://github.com/orgs/fac/packages?ecosystem=rubygems
# https://www.notion.so/freeagent/Internal-gems-5c8098501fcc48e4921be31aa9b4d495
name: FreeAgent Gem
on:
  push:
    branches: [master]
  pull_request:

jobs:
  # Install the bundle and run the gems test suite.
  tests:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1 # .ruby-version
      with:
        bundler-cache: true # bundle install

    - name: Test
      run: bundle exec rake

  # Builds that pass testing above, will trigger a build and push of the new
  # gem version to the registry. If the version.rb has not been bumped since
  # the last release, the push will no-op.
  release:
    needs:   tests
    runs-on: ubuntu-latest

    steps:
    - uses: fac/ruby-gem-setup-credentials-action@v2
      with:
        user: ""
        key: rubygems
        token: ${{ secrets.FAC_RUBYGEMS_KEY }}

    # Build the gem package
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
    - run: bundle exec rake build

    # Release production gem version from default branch
    - name: Release
      if:   github.ref == 'refs/heads/master'
      uses: fac/ruby-gem-push-action@v2
      with:
        key: rubygems

    # PR branch builds will release pre-release gems
    - name: Pre-Release
      if:   github.ref != 'refs/heads/master'
      uses: fac/ruby-gem-push-action@v2
      with:
        key: rubygems
        pre-release: true

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hermod-3.0.0 .github/workflows/freeagent-gem.yml
hermod-2.7.0 .github/workflows/freeagent-gem.yml
hermod-2.7.0.pre.rc.1 .github/workflows/freeagent-gem.yml
hermod-2.6.2 .github/workflows/freeagent-gem.yml