Skip to content

Merge pull request #24 from healthyregions/update_netlify_badge #15

Merge pull request #24 from healthyregions/update_netlify_badge

Merge pull request #24 from healthyregions/update_netlify_badge #15

Workflow file for this run

name: Deploy lambda functions from main branch
on:
push:
branches:
- main
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: cd lambda_functions && npm ci
- name: serverless deploy
uses: serverless/github-action@v3.1
with:
args: -c "cd lambda_functions && serverless plugin install -n serverless-python-requirements && serverless deploy"
entrypoint: /bin/sh
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}