File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ phases:
12
12
commands :
13
13
- git clone $REPO_URL aws-toolkit-vscode
14
14
- cd aws-toolkit-vscode && git checkout $CODEBUILD_RESOLVED_SOURCE_VERSION
15
+ # remove the repo URL since it is stored in S3
16
+ - git remote rm origin
17
+
15
18
artifacts :
16
19
base-directory : aws-toolkit-vscode
17
20
files :
Original file line number Diff line number Diff line change @@ -5,13 +5,18 @@ phases:
5
5
runtime-versions :
6
6
nodejs : 10
7
7
8
+ pre_build :
9
+ commands :
10
+ -
REPO_URL="https://[email protected] /aws/aws-toolkit-vscode.git"
11
+
8
12
build :
9
13
commands :
10
14
- |
11
15
if [ $STAGE != "prod" ]; then
12
16
echo "Stage is not production, skipping github push step"
13
17
exit 0
14
18
fi
19
+ git remote add origin $REPO_URL
15
20
VERSION=$(node -e "console.log(require('./package.json').version);")
16
21
echo "pushing to github"
17
22
git push origin --tags
You can’t perform that action at this time.
0 commit comments