Sha256: 152b8a17d5a109280482a0330ea7cda143dcbeb80c5b23d848696b3c1dd8bff8

Contents?: true

Size: 1.45 KB

Versions: 8

Compression:

Stored size: 1.45 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@v1

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

      - run: bundle exec rake bin/mn2pdf.jar

      - 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

      - if: failure()
        uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
        with:
          assignees: CAMOBAP
          update_existing: true
          search_existing: all

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mn2pdf-1.50 .github/workflows/release.yml
mn2pdf-1.49 .github/workflows/release.yml
mn2pdf-1.48 .github/workflows/release.yml
mn2pdf-1.47 .github/workflows/release.yml
mn2pdf-1.46 .github/workflows/release.yml
mn2pdf-1.45 .github/workflows/release.yml
mn2pdf-1.44 .github/workflows/release.yml
mn2pdf-1.42 .github/workflows/release.yml