Sha256: da4d13cb7666a5ec691578096fbed5ce66ccf564d7b480f55f45698cf39b39de

Contents?: true

Size: 1.51 KB

Versions: 52

Compression:

Stored size: 1.51 KB

Contents

name: release-tag

on:
  repository_dispatch:
    types: [ metanorma/mn2pdf ]

jobs:
  prepare:
    uses: metanorma/ci/.github/workflows/prepare-rake.yml@main

  tag-repo:
    runs-on: ubuntu-latest
    needs: prepare
    if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
    steps:
      - uses: actions/checkout@v3
        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"

      - name: Parse mn2pdf version
        env:
          MN2PDF_TAG: ${{ github.event.client_payload.ref }}
        run: echo MN2PDF_VERSION=${MN2PDF_TAG#*/v} >> ${GITHUB_ENV}

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

      - run: rm -f bin/mn2pdf.jar

      - run: bundle exec rake

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

      - name: Push commit and tag
        run: |
          git add -u lib/mn2pdf/version.rb
          git commit -m "Bump version to ${MN2PDF_VERSION}"
          git tag v${MN2PDF_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

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
mn2pdf-2.12 .github/workflows/release-tag.yml
mn2pdf-2.11 .github/workflows/release-tag.yml
mn2pdf-2.10 .github/workflows/release-tag.yml
mn2pdf-2.09 .github/workflows/release-tag.yml
mn2pdf-2.08 .github/workflows/release-tag.yml
mn2pdf-2.07 .github/workflows/release-tag.yml
mn2pdf-2.06 .github/workflows/release-tag.yml
mn2pdf-2.05 .github/workflows/release-tag.yml
mn2pdf-2.04 .github/workflows/release-tag.yml
mn2pdf-2.03 .github/workflows/release-tag.yml
mn2pdf-2.02 .github/workflows/release-tag.yml
mn2pdf-2.01 .github/workflows/release-tag.yml
mn2pdf-2.00 .github/workflows/release-tag.yml
mn2pdf-1.99 .github/workflows/release-tag.yml
mn2pdf-1.98 .github/workflows/release-tag.yml
mn2pdf-1.97 .github/workflows/release-tag.yml
mn2pdf-1.96 .github/workflows/release-tag.yml
mn2pdf-1.95 .github/workflows/release-tag.yml
mn2pdf-1.94 .github/workflows/release-tag.yml
mn2pdf-1.93 .github/workflows/release-tag.yml