Sha256: da4d13cb7666a5ec691578096fbed5ce66ccf564d7b480f55f45698cf39b39de

Contents?: true

Size: 1.51 KB

Versions: 53

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

53 entries across 53 versions & 1 rubygems

Version Path
mn2pdf-1.93 .github/workflows/release-tag.yml
mn2pdf-1.92 .github/workflows/release-tag.yml
mn2pdf-1.91 .github/workflows/release-tag.yml
mn2pdf-1.87.1 .github/workflows/release-tag.yml
mn2pdf-1.87 .github/workflows/release-tag.yml
mn2pdf-1.86 .github/workflows/release-tag.yml
mn2pdf-1.85 .github/workflows/release-tag.yml
mn2pdf-1.84 .github/workflows/release-tag.yml
mn2pdf-1.83 .github/workflows/release-tag.yml
mn2pdf-1.82 .github/workflows/release-tag.yml
mn2pdf-1.81 .github/workflows/release-tag.yml
mn2pdf-1.80 .github/workflows/release-tag.yml
mn2pdf-1.79 .github/workflows/release-tag.yml
mn2pdf-1.78 .github/workflows/release-tag.yml
mn2pdf-1.77 .github/workflows/release-tag.yml
mn2pdf-1.76 .github/workflows/release-tag.yml
mn2pdf-1.75 .github/workflows/release-tag.yml
mn2pdf-1.74 .github/workflows/release-tag.yml
mn2pdf-1.73 .github/workflows/release-tag.yml
mn2pdf-1.72 .github/workflows/release-tag.yml