Skip to content

Commit

Permalink
Fix redeploys
Browse files Browse the repository at this point in the history
  • Loading branch information
gfodor committed Dec 5, 2019
1 parent 42efd8f commit d646d93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ fi
if [[ "{{ cfg.deploy.type }}" == "cp" ]] ;
then
mkdir -p "{{ cfg.deploy.target }}/hubs/pages/releases"
mkdir -p "{{ cfg.deploy.target }}/hubs/pages/latest"

cp -R "$TEMP_DIST_PATH/assets" "{{ cfg.deploy.target }}/hubs"
cp -R "$TEMP_DIST_PATH/pages" "{{ cfg.deploy.target }}/hubs/pages/latest"
cp -R $TEMP_DIST_PATH/pages/* "{{ cfg.deploy.target }}/hubs/pages/latest"
cp -R "{{ cfg.deploy.target }}/hubs/pages/latest" "{{ cfg.deploy.target }}/hubs/pages/releases/{{ pkg.version }}.{{ pkg.release }}"
fi

Expand Down

0 comments on commit d646d93

Please sign in to comment.