Skip to content

Introduce support for Ruby #2

Introduce support for Ruby

Introduce support for Ruby #2

Workflow file for this run

name: Publish Ruby Layers
on:
push:
tags:
- v**_ruby
jobs:
publish-node:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.2, 3.3]
steps:
- name: Check Out the Repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

Check failure on line 16 in .github/workflows/publish-ruby.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-ruby.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- name: Use Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version ${{ matrix.ruby-version }}
- name: Check Tag
id: ruby-check-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+(\.[0-9]+)*_ruby$ ]]; then
echo "match=true" >> $GITHUB_OUTPUT
fi
- name: Install Ruby Dependencies
run: bundle
working-directory: ruby
- name: Publish layer
if: steps.ruby-check-tag.outputs.match == 'true'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: make publish-ruby${{ matrix.ruby-version }}-ci