mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-10 14:11:42 +00:00
30 lines
980 B
YAML
30 lines
980 B
YAML
name: "Download build artifacts"
|
|
description: "Download build artifacts"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: download and extract artifacts from s3
|
|
shell: bash
|
|
env:
|
|
REMOTE_PATH: "alfresco-ng2-components/build-cache/${{ github.run_id }}"
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
run: |
|
|
packages=( dist nxcache node_modules )
|
|
for i in "${packages[@]}"; do
|
|
time aws s3 cp --no-progress s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz $i.tar.gz
|
|
du -h $i.tar.gz
|
|
time tar xzf $i.tar.gz
|
|
done
|
|
- name: show files
|
|
shell: bash
|
|
run: |
|
|
pwd
|
|
ls -lha
|
|
echo "====DIST===="
|
|
find dist -maxdepth 1 -type d
|
|
echo "====NXCACHE===="
|
|
find nxcache -maxdepth 1 -type d
|
|
echo "====ADF===="
|
|
find node_modules/@alfresco/ -maxdepth 1 -type d
|