Sha256: 46dc5bdd1f532710ad8790194334318fed470c92cfef22a68da0b1a4dd36bfea

Contents?: true

Size: 1.75 KB

Versions: 16

Compression:

Stored size: 1.75 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:
  prepare:
    uses: metanorma/ci/.github/workflows/prepare-rake.yml@main

  prepare-ieee:
    uses: ./.github/workflows/prepare.yml
    secrets:
      pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}

  release:
    runs-on: ubuntu-latest
    needs: [ prepare, prepare-ieee ]
    steps:
      - uses: actions/checkout@v3

      - run: |
          git config user.name "metanorma-ci"
          git config user.email "metanorma-ci@users.noreply.github.com"

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
          bundler-cache: true

      - uses: actions/download-artifact@v3
        with:
          name: ieee-test-input
          path: ieee

      - run: gem install gem-release

      - if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip'
        run: |
          gem bump --version ${{ inputs.next_version }} --no-commit
          rm -f bin/mnconvert.jar
          bundle exec rake bin/mnconvert.jar

      - run: bundle exec rake

      - if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip'
        run: |
          git add -u bin/mnconvert.jar lib/mnconvert/version.rb
          git commit -m "Bump version to ${{ inputs.next_version }}"
          git tag v${mnconvert_VERSION}
          git push origin HEAD:${GITHUB_REF} --tags

      - uses: actions-mn/gem-release@main
        with:
          api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
          release-command: gem release

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mnconvert-1.59.0 .github/workflows/release.yml
mnconvert-1.58.0 .github/workflows/release.yml
mnconvert-1.57.0 .github/workflows/release.yml
mnconvert-1.56.0 .github/workflows/release.yml
mnconvert-1.55.0 .github/workflows/release.yml
mnconvert-1.54.0 .github/workflows/release.yml
mnconvert-1.53.0 .github/workflows/release.yml
mnconvert-1.52.0 .github/workflows/release.yml
mnconvert-1.51.0 .github/workflows/release.yml
mnconvert-1.50.0 .github/workflows/release.yml
mnconvert-1.49.0 .github/workflows/release.yml
mnconvert-1.48.0 .github/workflows/release.yml
mnconvert-1.47.0 .github/workflows/release.yml
mnconvert-1.46.0 .github/workflows/release.yml
mnconvert-1.45.0 .github/workflows/release.yml
mnconvert-1.44.0 .github/workflows/release.yml