Sha256: d2e06296c96f0b7c3e3fa72553872a8b1be02b45387850391e9a0330b60ab1d2

Contents?: true

Size: 1.75 KB

Versions: 7

Compression:

Stored size: 1.75 KB

Contents

name: release

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

jobs:
  pack:
    runs-on: ubuntu-18.04
    strategy:
      fail-fast: false
      matrix:
        host: [ linux, windows, darwin ]
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive

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

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

      - run: gem build expressir.gemspec

      - if: matrix.host == 'linux'
        uses: actions/upload-artifact@v2
        with:
          name: pkg-ruby
          path: expressir-*.gem

      - run: bundle exec rake gem:${{ matrix.host }}

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


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

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

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

      - uses: actions/download-artifact@v2
        with:
          name: pkg-darwin
          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

7 entries across 7 versions & 1 rubygems

Version Path
expressir-0.2.7 .github/workflows/release.yml
expressir-0.2.7-x86-mingw32 .github/workflows/release.yml
expressir-0.2.7-x64-mingw32 .github/workflows/release.yml
expressir-0.2.7-x86_64-linux .github/workflows/release.yml
expressir-0.2.7-x86-linux .github/workflows/release.yml
expressir-0.2.7-x86_64-darwin .github/workflows/release.yml
expressir-0.2.7-arm64-darwin .github/workflows/release.yml