Sha256: 0318e722b2a1f1596152eb544fc91be196044ed4bb00a5fe2929e3ebd0db6579

Contents?: true

Size: 1.86 KB

Versions: 7

Compression:

Stored size: 1.86 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
          echo "---"
          cat > ~/.gem/credentials << EOF
          ---
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF
          echo "---"
          chmod 0600 ~/.gem/credentials
          echo "---"
          ls -la ~/.gem
          echo "---"
          gem signin --debug
          echo "---"
          for gem in pkg/*.gem; do gem push $gem -V; done

Version data entries

7 entries across 7 versions & 1 rubygems

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