github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/clients/ruby/.github/workflows/release.yml (about)

     1  name: release
     2  
     3  on:
     4    push:
     5      tags:
     6        - '*'
     7  
     8  jobs:
     9    release:
    10      runs-on: ubuntu-latest
    11      steps:
    12        -
    13          name: Checkout
    14          uses: actions/checkout@v3
    15        -
    16          name: Set up Ruby
    17          uses: ruby/setup-ruby@d3c9825d67b0d8720afdfdde5af56c79fdb38d16 # pin@v1.138.0
    18          with:
    19            ruby-version: '3.2'
    20        -
    21          name: Version
    22          id: version
    23          run: |
    24            echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
    25        -
    26          name: Release Github Package
    27          run: bash ./.github/workflows/release.sh -xe
    28          env:
    29            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    30            RUBYGEMS_TOKEN: ${{ secrets.RUBYGEMS_TOKEN }}
    31            VERSION: ${{ steps.version.outputs.VERSION }}
    32            OWNER: phrase