Skip to content

Commit 4385203

Browse files
authored
ci: add --delete cmd to docs publish
1 parent de62353 commit 4385203

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/reusable_publish_docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ jobs:
109109
set -euo pipefail
110110
aws s3 sync \
111111
site/ \
112-
"s3://$AWS_DOCS_BUCKET/lambda-typescript/$VERSION/"
112+
"s3://$AWS_DOCS_BUCKET/lambda-typescript/$VERSION/" \
113+
--delete
113114
- name: Deploy Docs (Alias)
114115
env:
115116
VERSION: ${{ inputs.version }}
@@ -119,7 +120,8 @@ jobs:
119120
set -euo pipefail
120121
aws s3 sync \
121122
site/ \
122-
"s3://$AWS_DOCS_BUCKET/lambda-typescript/$ALIAS/"
123+
"s3://$AWS_DOCS_BUCKET/lambda-typescript/$ALIAS/" \
124+
--delete
123125
- name: Deploy Docs (Version JSON)
124126
env:
125127
VERSION: ${{ inputs.version }}

0 commit comments

Comments
 (0)