Skip to content

Merge branch 'master' into ptest #14

Merge branch 'master' into ptest

Merge branch 'master' into ptest #14

name: Publish Extension Layer
on:
push:
tags:
- v**_extension
jobs:
publish-extension:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.12 ]
steps:
- uses: actions/checkout@v4
- name: Check Tag
id: extension-check-tag
run: |
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+(\.[0-9]+)*_extension$ ]]; then
echo "match=true" >> $GITHUB_OUTPUT
fi
- name: Install publish dependencies
if: steps.extension-check-tag.outputs.match == 'true'
run: pip install -U awscli
- name: Publish extension layer
if: steps.extension-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: |
cd extension
./publish-layer.sh