Sha256: 4f13d9ebd35985ff04de937e8b3be90129c50e225c0e34c311332fd65693c9bf

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 KB

Contents

name: release-tag

on:
  repository_dispatch:
    types: [ metanorma/mnconvert ]

jobs:
  tag_repo:
    runs-on: ubuntu-18.04
    if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
    steps:
      - uses: actions/checkout@v2
        with:
          token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}

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

      - run: echo mnconvert_VERSION=${mnconvert_TAG#*/v} >> ${GITHUB_ENV}
        env:
          mnconvert_TAG: ${{ github.event.client_payload.ref }}

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

      - run: gem install gem-release

      - run: gem bump --version ${mnconvert_VERSION} --no-commit

      - run: |
          rm -f bin/mnconvert.jar
          bundle exec rake bin/mnconvert.jar

      - run: bundle exec rake

      - name: Push commit and tag
        run: |
          git add -u bin/mnconvert.jar lib/mnconvert/version.rb
          git commit -m "Bump version to ${mnconvert_VERSION}"
          git tag v${mnconvert_VERSION}
          git push origin HEAD:${GITHUB_REF} --tags

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mnconvert-1.24.0 .github/workflows/release-tag.yml
mnconvert-1.23.0 .github/workflows/release-tag.yml
mnconvert-1.22.0 .github/workflows/release-tag.yml
mnconvert-1.21.0 .github/workflows/release-tag.yml
mnconvert-1.20.0 .github/workflows/release-tag.yml
mnconvert-1.19.0 .github/workflows/release-tag.yml
mnconvert-1.18.0 .github/workflows/release-tag.yml
mnconvert-1.17.0 .github/workflows/release-tag.yml
mnconvert-1.16.0 .github/workflows/release-tag.yml
mnconvert-1.15.0 .github/workflows/release-tag.yml
mnconvert-1.14.0 .github/workflows/release-tag.yml