Sha256: c9274b6ccfee6c6b23e8d762f3a290cf87ba87424aa15e228998bf87484ebf40

Contents?: true

Size: 1.62 KB

Versions: 3

Compression:

Stored size: 1.62 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.5-x86_64-linux .github/workflows/release.yml
expressir-0.2.5-x86_64-darwin-19 .github/workflows/release.yml
expressir-0.2.5 .github/workflows/release.yml