diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f9dbc03..e3ed51b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,3 +48,25 @@ jobs: USE_DEPOT: 1 DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }} DOCKER_TAG: ${{ steps.get_version.outputs.VERSION }} + + # Publishes the images as a new version of the AWS Lambda runtimes (brefphp/runtimes-publishing, private) + publish-runtimes: + name: Publish the runtimes + runs-on: ubuntu-24.04 + needs: [ release ] + # Only for releases: a manual run publishes images tagged with the branch name + if: github.event_name == 'release' + steps: + - uses: actions/github-script@v9 + with: + github-token: ${{ secrets.GH_TOKEN_TRIGGER }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'brefphp', + repo: 'runtimes-publishing', + workflow_id: 'publish.yml', + ref: 'main', + inputs: { + version: context.payload.release.tag_name, + }, + })