Skip to content

Commit

Permalink
Update DeployEcsProd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tzafrirhn authored Apr 17, 2024
1 parent 4a9a8a6 commit d30f17f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/DeployEcsProd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
aws s3 sync s3://igpublisher-static-prod ./webroot --region eu-west-1
if [ -d "./webroot/html" ]; then
mv ./webroot/html ./webroot/core
latest=$(jq -r '.packages[].latest.version' ./webroot/package-registry.json)
echo "Creating latest version folder $latest"
mkdir ./webroot/$latest
mkdir ./webroot/0.14.0
versions=$(jq -r '.list[] | select( .version != "current" ) | .version' ./webroot/core/package-list.json)
for version in $versions; do
mkdir "./webroot/$version"
echo "Folder 'webroot/$version' created."
else
echo "First Version"
fi
Expand Down

0 comments on commit d30f17f

Please sign in to comment.