Sha256: f1f9ff68ac42a19637964c84b16aa9e2306af9a39f0d4297533a553530166ca8

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

name: release

on:
  push:
    tags: [ v* ]
  workflow_dispatch:

jobs:
  pack:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ ubuntu-latest, windows-latest, macos-latest ]
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '2.4'

      - if: matrix.os == 'macos-latest'
        run: brew install autoconf automake libtool

      - run: bundle install --jobs 4 --retry 3

      - run: bundle exec rake native gem

      - run: bundle exec rake

      - uses: actions/upload-artifact@v2
        with:
          name: pkg-${{ matrix.os }}
          path: pkg/*.gem

  release:
    runs-on: ubuntu-18.04
    needs: pack
    steps:
      - uses: actions/download-artifact@v2
        with:
          name: pkg-ubuntu-latest
          path: pkg

      - uses: actions/download-artifact@v2
        with:
          name: pkg-windows-latest
          path: pkg

      - uses: actions/download-artifact@v2
        with:
          name: pkg-macos-latest
          path: pkg

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '2.6'

      - run: ls -l pkg/

      - name: Publish to rubygems.org
        env:
          RUBYGEMS_API_KEY: ${{secrets.LUTAML_CI_RUBYGEMS_API_KEY}}
        run: |
          mkdir -p ~/.gem
          cat <<'EOF' > ~/.gem/credentials
          ---
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF
          chmod 0600 ~/.gem/credentials
          gem -v
          gem signin
          for gem in pkg/*.gem; do gem push $gem -V -k rubygems ; done

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
expressir-0.2.6 .github/workflows/release.yml
expressir-0.2.5-x64-mingw32 .github/workflows/release.yml
expressir-0.2.4-x64-mingw32 .github/workflows/release.yml