Sha256: 904b83bd2266cca01b46c0acf7a1a7abe061bb411810df9e353a6a17276fb600

Contents?: true

Size: 882 Bytes

Versions: 21

Compression:

Stored size: 882 Bytes

Contents

name: Release

on:
  # Support manually pushing a new release
  workflow_dispatch: {}
  # Trigger when a release is published
  release:
    types: [released]

defaults:
  run:
    shell: bash

jobs:
  test:
    name: Publish to RubyGems
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.2'
          bundler-cache: true

      - name: Spec
        run: |
          bundle exec rspec

      - name: Publish
        env:
          RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
        run: |
          mkdir -p ~/.gem

          cat << EOF > ~/.gem/credentials
          ---
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF

          chmod 0600 ~/.gem/credentials

          bundle exec gem build workos --output=release.gem
          bundle exec gem push release.gem

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
workos-5.11.1 .github/workflows/release.yml
workos-5.11.0 .github/workflows/release.yml
workos-5.10.0 .github/workflows/release.yml
workos-5.9.0 .github/workflows/release.yml
workos-5.8.0 .github/workflows/release.yml
workos-5.7.0 .github/workflows/release.yml
workos-5.6.0 .github/workflows/release.yml
workos-5.5.1 .github/workflows/release.yml
workos-5.5.0 .github/workflows/release.yml
workos-5.4.0 .github/workflows/release.yml
workos-5.3.0 .github/workflows/release.yml
workos-5.2.1 .github/workflows/release.yml
workos-5.2.0 .github/workflows/release.yml
workos-5.1.0 .github/workflows/release.yml
workos-5.0.0 .github/workflows/release.yml
workos-4.8.0 .github/workflows/release.yml
workos-4.5.0 .github/workflows/release.yml
workos-4.4.0 .github/workflows/release.yml
workos-4.3.0 .github/workflows/release.yml
workos-4.2.1 .github/workflows/release.yml