Sha256: 437ac7bf7b69a1bc1708e96a9bf89dc904b8f1c7aee1850ccd1e1a3ef1cb4907

Contents?: true

Size: 1.82 KB

Versions: 17

Compression:

Stored size: 1.82 KB

Contents

name: release-tag

on:
  repository_dispatch:
    types: [ metanorma/mnconvert ]

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 }}

  tag_repo:
    runs-on: ubuntu-latest
    if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
    needs: [ prepare, prepare-ieee ]
    steps:
      - uses: actions/checkout@v3
        with:
          token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}

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

      - 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: ${{ needs.prepare.outputs.default-ruby-version }}
          bundler-cache: true

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

      - run: rm -f 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

      - 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
          filename: .github/RELEASE_ISSUE_TEMPLATE.md

Version data entries

17 entries across 17 versions & 1 rubygems

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