Sha256: 98fba478984f6f826fa06cacff5bb8ffce3051c5e4c132e391790ad423337332

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
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: 'skip'
  push:
    tags: [ v* ]

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

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

      - run: gem install gem-release

      - run: |
          git config user.name github-actions
          git config user.email github-actions@github.com

      - if: github.event_name == 'workflow_dispatch' && github.event.inputs.next_version != 'skip'
        run: gem bump --version ${{ github.event.inputs.next_version }} --tag --push

      - name: publish to rubygems.org
        env:
          RUBYGEMS_API_KEY: ${{secrets.RELATON_CI_RUBYGEMS_API_KEY}}
        run: |
          envsubst << 'EOF' > ~/.gem/credentials
          ---
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF
          chmod 0600 ~/.gem/credentials
          gem release

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
relaton-cli-1.13.0 .github/workflows/release.yml
relaton-cli-1.12.1 .github/workflows/release.yml
relaton-cli-1.12.0 .github/workflows/release.yml
relaton-cli-1.11.0 .github/workflows/release.yml
relaton-cli-1.10.2 .github/workflows/release.yml
relaton-cli-1.10.1 .github/workflows/release.yml
relaton-cli-1.10.0 .github/workflows/release.yml
relaton-cli-1.9.5 .github/workflows/release.yml