Skip to content

Commit 2bfcced

Browse files
authored
Merge branch 'main' into audit-fixes
2 parents 7ed8da1 + 54dc76b commit 2bfcced

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ commands:
6060
- attach_workspace:
6161
at: /tmp/dist
6262
- aws-cli/install
63+
- run:
64+
name: Check AWS credentials
65+
command: |
66+
if [ -z "$AWS_ACCESS_KEY_ID" ] || [ -z "$AWS_SECRET_ACCESS_KEY" ]; then
67+
echo "AWS credentials not found"
68+
circleci-agent step halt
69+
fi
6370
- aws-s3/sync:
6471
arguments: --cache-control public,max-age=300,stale-while-revalidate=300 --exclude * --include *.html --include *.txt --include *.json --include *.md --include *.xml
6572
from: /tmp/dist/s2-docs/<< parameters.dir >>

0 commit comments

Comments
 (0)