Skip to content

Commit

Permalink
update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Nov 2, 2019
1 parent 8fe16b5 commit 2f9c04d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion automation-testing
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ if [[ ! -d "remote-seleniumhub-chrome/generated-docs/html" ]]; then
echo TEST DID NOT OUTPUT ANY RESULTS
exit 1
fi
export OUTPUT_SOURCE=$(pwd ${TEST_RESULTS}/generated-docs)
echo OUTPUT_SOURCE: ${OUTPUT_SOURCE}
echo PUBLISH RESULTS

export TEST_RESULTS="$(pwd)/aemdesign-testing/remote-seleniumhub-chrome"
Expand All @@ -50,10 +52,17 @@ git clone https://github.com/aem-design/aemdesign-aem-support-output.git

echo SWITCH TO GH-PAGES BRANCH
cd aemdesign-aem-support-output

OUTPUT_DEST=$(pwd generated-docs)
echo OUTPUT_DEST: ${OUTPUT_DEST}

echo CHECKOUT GH-PAGES
git checkout gh-pages

echo COPY UPDATED RESULTS
cp -Rv "${TEST_RESULTS}/generated-docs" "./aemdesign-aem-support-output/generated-docs"
echo COPY: "${OUTPUT_SOURCE}"
echo TO: "${OUTPUT_DEST}"
cp -Rv "${OUTPUT_SOURCE}" "${OUTPUT_DEST}"

echo COMMIT AND PUSH UPDATES
git add .
Expand Down

0 comments on commit 2f9c04d

Please sign in to comment.