Install cargo-lambda using pip3 so it also installs zig #4
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: CD | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'infrastructure/**' | |
- 'src/**' | |
- 'scripts/**' | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Build Lambda functions | |
run: python3 ./scripts/build.py | |
- name: Plan Terraform | |
run: terraform plan | |
- name: Apply Terraform | |
run: terraform apply |