Introduce support for Ruby #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- 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 |