Skip to content

Commit 3fcf025

Browse files
committed
Update lambda release.yml
1 parent 3481059 commit 3fcf025

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
env:
8+
UPLOAD_LAMBDA: false
9+
710
jobs:
811
test:
912
name: Test lambda function
@@ -21,6 +24,7 @@ jobs:
2124
build-and-upload:
2225
name: Build GitHub action and AWS lambda function
2326
needs: test
27+
if: UPLOAD_LAMBDA == 'true'
2428
runs-on: ubuntu-latest
2529

2630
steps:
@@ -48,6 +52,7 @@ jobs:
4852
test-new-version:
4953
name: Test uploaded lambda
5054
needs: build
55+
if: UPLOAD_LAMBDA == 'true'
5156
runs-on: ubuntu-latest
5257

5358
steps:

0 commit comments

Comments
 (0)