Skip to content

Commit

Permalink
use caching in lambda deploys as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Dec 15, 2024
1 parent 01cc771 commit f28ddb2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy-all-lambdas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ jobs:
cd ${{ github.event.repository.name }}
git checkout ${{ github.sha }}
- name: Restore .build
id: "restore-cache"
uses: actions/cache/restore@v4
with:
path: ${{ github.event.repository.name }}/.build
key: "lambdas-build-${{ runner.os }}-${{ github.event.after }}"
restore-keys: "lambdas-build-${{ runner.os }}-"

- name: Find package names
working-directory: ${{ github.event.repository.name }}
id: find_package_names
Expand Down Expand Up @@ -62,6 +70,12 @@ jobs:
--body ./zips/${name}/${name}.zip
done
- name: Cache .build
uses: actions/cache/save@v4
with:
path: ${{ github.event.repository.name }}/.build
key: "lambdas-build-${{ runner.os }}-${{ github.event.after }}"

- name: Deploy
working-directory: ${{ github.event.repository.name }}
run: |
Expand Down

0 comments on commit f28ddb2

Please sign in to comment.