Skip to content

Commit 8201ba3

Browse files
committed
Exclude build directory when copying the files
1 parent e78ad79 commit 8201ba3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/cdk_package_code.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,17 @@ jobs:
5555
- name: make install
5656
run: |
5757
make install
58+
5859
- name: Build Python Lambda Functions
5960
run: |
6061
mkdir -p packages/slackBotFunction/build
6162
pip3 install -r packages/slackBotFunction/requirements.txt -t packages/slackBotFunction/build
62-
cp -r packages/slackBotFunction/* packages/slackBotFunction/build/
63+
rsync -a --exclude=build packages/slackBotFunction/ packages/slackBotFunction/build/
6364
6465
mkdir -p packages/createIndexFunction/build
6566
pip3 install -r packages/createIndexFunction/requirements.txt -t packages/createIndexFunction/build
66-
cp -r packages/createIndexFunction/* packages/createIndexFunction/build/
67-
67+
rsync -a --exclude=build packages/createIndexFunction/ packages/createIndexFunction/build/
68+
6869
- name: 'Tar files'
6970
run: |
7071
tar -rf artifact.tar \

0 commit comments

Comments
 (0)