Skip to content

Commit 8881863

Browse files
josephperrottclydin
authored andcommitted
build: upload build artifacts from PR builds to CircleCI for usage
Upload build artifacts from PR builds to the CircleCI storage to allow users to download an in progress version of a change for testing. (cherry picked from commit cb18f7e)
1 parent f8434b6 commit 8881863

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.circleci/dynamic_config.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ var_5: &only_release_branches
3737
- main
3838
- /\d+\.\d+\.x/
3939

40-
var_6: &all_e2e_subsets ['npm', 'esbuild', 'yarn']
40+
var_6: &only_pull_requests
41+
filters:
42+
branches:
43+
only:
44+
- /pull\/\d+/
45+
46+
var_7: &all_e2e_subsets ['npm', 'esbuild', 'yarn']
4147

4248
# Executor Definitions
4349
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-executors
@@ -323,6 +329,23 @@ jobs:
323329
yarn admin snapshots --verbose --githubTokenFile=${HOME}/github_token
324330
- fail_fast
325331

332+
publish_artifacts:
333+
executor: action-executor
334+
environment:
335+
steps:
336+
- custom_attach_workspace
337+
- run:
338+
name: Create artifacts for packages
339+
command: yarn ng-dev release build
340+
- run:
341+
name: Copy tarballs to folder
342+
command: |
343+
mkdir -p dist/artifacts/
344+
cp dist/*.tgz dist/artifacts/
345+
- store_artifacts:
346+
path: dist/artifacts/
347+
destination: angular
348+
326349
# Windows jobs
327350
e2e-cli-win:
328351
executor: windows-executor
@@ -450,3 +473,8 @@ workflows:
450473
requires:
451474
- setup
452475
- e2e-cli
476+
477+
- publish_artifacts:
478+
<<: *only_pull_requests
479+
requires:
480+
- build

0 commit comments

Comments
 (0)