Sha256: 80c504d6a11d58335360e98695c51ea1be0151ba70b5988f14ecc97c99026d3f

Contents?: true

Size: 944 Bytes

Versions: 1

Compression:

Stored size: 944 Bytes

Contents

name: Publish Gem

on:
  push:
    tags:
      - "*"

jobs:
  publish:
    runs-on: ubuntu-latest

    steps:
      - name: Set version
        id: version
        run: echo ::set-output name=version::${GITHUB_REF#refs/*/v}

      - name: checkout
        uses: actions/checkout@v2

      - name: Setup Ruby using Bundler
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "2.7.1"
          bundler-cache: true
          bundler: "2.1.4"

      - name: install gems
        run: bundle install

      - name: Setup Rubygems credentials
        run: |
          set +x
          mkdir -p ~/.gem
          cat << EOF > ~/.gem/credentials
          ---
          :rubygems_api_key: ${{ secrets.OSC_ROBOT_RUBYGEMS_TOKEN }}
          EOF
          chmod 0600 ~/.gem/credentials

      - name: Publish Gem
        run: |
          bundle exec rake build
          gem push pkg/osc-machete-${{ steps.version.outputs.version }}.gem

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
osc-machete-2.0.0 .github/workflows/publish.yml