Sha256: 6fdbf55220e748b43d3cf862f3658f855c0cfa57795a78c8e499b74fdbc47257

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

name: release

on:
  push:
    tags:
      - '*'
  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'

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

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

      - run: bundle exec rake

      - 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.METANORMA_CI_RUBYGEMS_API_KEY}}
        run: |
          gem install gem-release
          cat > ~/.gem/credentials << EOF
          ---
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF
          chmod 0600 ~/.gem/credentials
          gem release

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nist-pubid-0.1.7 .github/workflows/release.yml
nist-pubid-0.1.6 .github/workflows/release.yml
nist-pubid-0.1.5 .github/workflows/release.yml
nist-pubid-0.1.4 .github/workflows/release.yml