Bump @babel/core in /src/Elastic.Documentation.Site (#1807) #95
This file contains hidden or 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: Deploy API Lambda | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: | |
contents: read | |
uses: ./.github/workflows/build-api-lambda.yml | |
deploy: | |
permissions: | |
contents: read | |
id-token: write | |
runs-on: ubuntu-latest | |
needs: build | |
environment: docs-api-edge | |
env: | |
ZIP_FILE: api-lambda.zip | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Download bootstrap binary | |
uses: actions/download-artifact@v4 | |
with: | |
name: api-lambda-binary | |
- name: Download bootstrap binary | |
uses: actions/download-artifact@v4 | |
with: | |
name: api-lambda-binary # Defined in build-api-lambda.yml | |
- name: Create zip | |
run: | | |
zip -j "${ZIP_FILE}" ./bootstrap | |
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1 | |
with: | |
role-to-assume: arn:aws:iam::197730964718:role/elastic-docs-v3-api-deployer-edge | |
aws-region: us-east-1 | |
- name: Upload Lambda function | |
run: | | |
aws lambda update-function-code \ | |
--function-name elastic-docs-v3-edge-api \ | |
--zip-file "fileb://${ZIP_FILE}" |