Skip to content

Commit 8dced85

Browse files
authored
Merge pull request #648 from aws-amplify/fix-release
chore: enable debug for release workflow
2 parents e907ec4 + b626b49 commit 8dced85

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.codebuild/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ env:
55
phases:
66
build:
77
commands:
8+
- codebuild-breakpoint
89
- source ./shared-scripts.sh && _deploy

.codebuild/release_workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ batch:
2828
- build_linux
2929
- identifier: deploy
3030
buildspec: .codebuild/deploy.yml
31+
debug-session: true
3132
depend-on:
3233
- test
3334
- build_windows

.codebuild/scripts/publish.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
#!/bin/bash -e
22

3-
if [[ "$CODEBUILD_WEBHOOK_TRIGGER" == "pr/"* ]]; then
4-
BRANCH_NAME=${CODEBUILD_WEBHOOK_BASE_REF##*/}
5-
fi
6-
73
if [ -z "$BRANCH_NAME" ]; then
84
echo "BRANCH_NAME is missing"
95
exit 1
106
else
117
git checkout $BRANCH_NAME
8+
git pull
9+
git fetch --all
1210
yarn install
1311
git restore .
1412
fi

0 commit comments

Comments
 (0)