build: fix angular bot not creating size baseline (#14051)

* Currently the Github robot is always pending on `master` because it looks like it couldn't load the artifacts from CircleCI. Based on the source code of the Robot, the artifact paths need to be in a specific path in order to be taken into account.
This commit is contained in:
Paul Gschwendtner
2018-11-10 01:13:33 +01:00
committed by vivian-hu
parent af7a3d4c4b
commit ffe0c3e8a5
+7 -3
View File
@@ -228,13 +228,17 @@ jobs:
# Publish bundle artifacts which will be used to calculate the size change.
# Note: Make sure that the size plugin from the Angular robot fetches the artifacts
# from this CircleCI job (see .github/angular-robot.yml)
# from this CircleCI job (see .github/angular-robot.yml). Additionally any artifacts need to
# be stored with the following path format: "{projectName}/{context}/{fileName}"
# This format is necessary because otherwise the bot is not able to pick up the
# artifacts from CircleCI. See:
# https://github.com/angular/github-robot/blob/master/functions/src/plugins/size.ts#L392-L394
- store_artifacts:
path: dist/releases/material/bundles/material.umd.js
destination: material.umd.js
destination: /angular_material/material_release_output/material.umd.js
- store_artifacts:
path: /tmp/cdk-umd-artifacts
destination: /
destination: /angular_material/cdk_release_output/
- *save_cache