Sha256: 3c31c637d33ab44662a5f88e26765623dcdae2d46e4166a07c823a0e8ec69244

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

name: release-tag

on:
  repository_dispatch:
    types: [ metanorma/mnconvert ]

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

  tag_repo:
    runs-on: ubuntu-latest
    if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
    needs: [ prepare-ieee ]
    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.7'
          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

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

      - 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

3 entries across 3 versions & 1 rubygems

Version Path
mnconvert-1.32.0 .github/workflows/release-tag.yml
mnconvert-1.30.0 .github/workflows/release-tag.yml
mnconvert-1.29.0 .github/workflows/release-tag.yml