Sha256: be37fb0326acaeaafda17e0977c6915fa959b3bb92980a4118613873d0f42d58

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

name: release

on:
  push:
    tags:
      - '*'
  workflow_dispatch: # just for manual release if previous was failed

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 mnconvert.jar
        run: |
          rm -f bin/mnconvert.jar
          rake bin/mnconvert.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

11 entries across 11 versions & 1 rubygems

Version Path
mnconvert-1.24.0 .github/workflows/release.yml
mnconvert-1.23.0 .github/workflows/release.yml
mnconvert-1.22.0 .github/workflows/release.yml
mnconvert-1.21.0 .github/workflows/release.yml
mnconvert-1.20.0 .github/workflows/release.yml
mnconvert-1.19.0 .github/workflows/release.yml
mnconvert-1.18.0 .github/workflows/release.yml
mnconvert-1.17.0 .github/workflows/release.yml
mnconvert-1.16.0 .github/workflows/release.yml
mnconvert-1.15.0 .github/workflows/release.yml
mnconvert-1.14.0 .github/workflows/release.yml