Skip to content

Commit 9cb287c

Browse files
committed
Added a deploy stage to the makefile so that it can used in the release process
1 parent 473ab93 commit 9cb287c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define variables for the targets and output binary name
2-
TARGETS := x86_64-unknown-linux-musl aarch64-unknown-linux-musl
2+
TARGETS := aarch64-unknown-linux-musl x86_64-unknown-linux-musl
33

44
# Setup phase to install necessary Rust targets
55
.PHONY: setup
@@ -18,4 +18,9 @@ build: setup
1818
# Clean build artifacts
1919
.PHONY: clean
2020
clean:
21-
cargo clean
21+
cargo clean
22+
23+
# Deploy the Lambda function to AWS
24+
.PHONY: deploy
25+
deploy: build
26+
cargo lambda deploy --extension

0 commit comments

Comments
 (0)