Sha256: ce10af1c4c2c973b77b3faa0c426bd8a64b2655b553f12dd4d31fa0da8d34a74

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

name: release

on:
  workflow_dispatch:
    inputs:
      next_version:
        description: |
          Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
        required: true
        default: 'patch'
  push:
    tags: [ v* ]

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.1
          bundler-cache: true

      - run: gem install gem-release

      - if: github.event_name == 'workflow_dispatch' && github.event.inputs.next_version != 'skip'
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          gem bump --version ${{ github.event.inputs.next_version }} --tag --push

      - name: publish to rubygems.org
        env:
          RUBYGEMS_API_KEY: ${{ secrets.LUTAML_CI_RUBYGEMS_API_KEY }}
        run: |
          gem install gem-release
          mkdir -p  ~/.gem
          cat > ~/.gem/credentials << EOF
          ---
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF
          chmod 0600 ~/.gem/credentials
          gem release

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lutaml-express-0.2.1 .github/workflows/release.yml