Sha256: dbb16e751e6db5fb88320f07d1573ac505ad764868cad872798cb652e77706b4

Contents?: true

Size: 1.59 KB

Versions: 6

Compression:

Stored size: 1.59 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@v1
      - name: Add writable remote
        run: |
          git config --global user.name metanorma-ci
          git config --global user.email "metanorma-ci@users.noreply.github.com"
          git remote add github https://metanorma-ci:${{ secrets.METANORMA_CI_PAT_TOKEN }}@github.com/$GITHUB_REPOSITORY
          git pull github ${GITHUB_REF} --ff-only
      - name: Parse mnconvert version
        env:
          mnconvert_TAG: ${{ github.event.client_payload.ref }}
        run: |
          echo mnconvert_VERSION=${mnconvert_TAG#*/v} >> ${GITHUB_ENV}
      - name: Use Ruby
        uses: actions/setup-ruby@v1
        with:
          ruby-version: '2.6'
          architecture: 'x64'
      - name: Update gems
        run: |
          gem install gem-release
          gem install bundler
          bundle install --jobs 4 --retry 3
      - name: Update version
        run: |
          gem bump --version ${mnconvert_VERSION} --no-commit
      - name: Update mnconvert.jar
        run: |
          rm -f bin/mnconvert.jar
          rake bin/mnconvert.jar
      - name: Run specs
        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 github HEAD:${GITHUB_REF} --tags

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mnconvert-1.13.0 .github/workflows/release-tag.yml
mnconvert-1.12.0 .github/workflows/release-tag.yml
mnconvert-1.11.0 .github/workflows/release-tag.yml
mnconvert-1.10.0 .github/workflows/release-tag.yml
mnconvert-1.9.0 .github/workflows/release-tag.yml
mnconvert-1.8.0 .github/workflows/release-tag.yml