Sha256: 1b925886a353f82f5585cae8a07d2469a589ab71c23f4a72dd8302cd670699f5

Contents?: true

Size: 968 Bytes

Versions: 6

Compression:

Stored size: 968 Bytes

Contents

name: release

on:
  push:
    tags:
      - '*'

jobs:
  release:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v1
      - name: Use Ruby
        uses: actions/setup-ruby@v1
        with:
          ruby-version: '2.6'
          architecture: 'x64'
      - name: Update gems
        run: |
          gem install bundler
          bundle install --jobs 4 --retry 3
      - name: Update mn2pdf.jar
        run: |
          rm -f bin/mn2pdf.jar
          rake bin/mn2pdf.jar
      - name: Run specs
        run: |
          bundle exec rake
      - name: Publish to rubygems.org
        env:
          RUBYGEMS_API_KEY: ${{secrets.METANORMA_CI_RUBYGEMS_API_KEY}}
        run: |
          gem install gem-release
          touch ~/.gem/credentials
          cat > ~/.gem/credentials << EOF
          ---
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF
          chmod 0600 ~/.gem/credentials
          git status
          gem release

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mn2pdf-1.22.1 .github/workflows/release.yml
mn2pdf-1.22 .github/workflows/release.yml
mn2pdf-1.21 .github/workflows/release.yml
mn2pdf-1.20 .github/workflows/release.yml
mn2pdf-1.19 .github/workflows/release.yml
mn2pdf-1.18 .github/workflows/release.yml