Sha256: 20797ebec0f832899e11325eaf1526fa545c73a17b0a7a15db87a54827d29198

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 mn2sts.jar
        run: |
          rm -f bin/mn2sts.jar
          rake bin/mn2sts.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
mn2sts-1.8.0 .github/workflows/release.yml
mn2sts-1.7.0 .github/workflows/release.yml
mn2sts-1.5.0 .github/workflows/release.yml
mn2sts-1.2.0 .github/workflows/release.yml
mn2sts-1.1.0 .github/workflows/release.yml
mn2sts-1.0.1 .github/workflows/release.yml