From 9185d42c859fbaeb3cbee538faa0dea54c384d54 Mon Sep 17 00:00:00 2001 From: Chris Tremblay <62187826+chtrembl@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:34:26 -0400 Subject: [PATCH 1/3] Update petstoreapp_ci_cd_to_appservice.yml --- .github/workflows/petstoreapp_ci_cd_to_appservice.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/petstoreapp_ci_cd_to_appservice.yml b/.github/workflows/petstoreapp_ci_cd_to_appservice.yml index fd6f653c..75bcd6e9 100644 --- a/.github/workflows/petstoreapp_ci_cd_to_appservice.yml +++ b/.github/workflows/petstoreapp_ci_cd_to_appservice.yml @@ -20,6 +20,10 @@ jobs: - name: Checking the file system listing for Pet Store App run: | ls -al + - name: Build the Soul Machines React app + run: cd petstore/petstoreapp/soulmachines-react-app | npm install | npm run build + - name: Copy minified Soul Machines React app to Spring Boot static resources + run: mv build/static/ ../src/main/resources/static | mv build/index.html ../src/main/resources/templates - name: Update the version.json run: echo -n -e "{\"version\":\"${{ github.sha }}\",\"date\":\"$(date '+%m-%d-%Y %H:%M:%S')\"}" > petstore/petstoreapp/src/main/resources/static/content/version.json - run: cat petstore/petstoreapp/src/main/resources/static/content/version.json From 3db0d06245369c46274e3d4c9d33448ad55080a5 Mon Sep 17 00:00:00 2001 From: Chris Tremblay <62187826+chtrembl@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:37:58 -0400 Subject: [PATCH 2/3] Update petstoreapp_ci_cd_to_appservice.yml --- .github/workflows/petstoreapp_ci_cd_to_appservice.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/petstoreapp_ci_cd_to_appservice.yml b/.github/workflows/petstoreapp_ci_cd_to_appservice.yml index 75bcd6e9..f823ae38 100644 --- a/.github/workflows/petstoreapp_ci_cd_to_appservice.yml +++ b/.github/workflows/petstoreapp_ci_cd_to_appservice.yml @@ -21,9 +21,14 @@ jobs: run: | ls -al - name: Build the Soul Machines React app - run: cd petstore/petstoreapp/soulmachines-react-app | npm install | npm run build + run: | + cd petstore/petstoreapp/soulmachines-react-app + npm install + npm run build - name: Copy minified Soul Machines React app to Spring Boot static resources - run: mv build/static/ ../src/main/resources/static | mv build/index.html ../src/main/resources/templates + run: | + mv build/static/ ../src/main/resources/static + mv build/index.html ../src/main/resources/templates - name: Update the version.json run: echo -n -e "{\"version\":\"${{ github.sha }}\",\"date\":\"$(date '+%m-%d-%Y %H:%M:%S')\"}" > petstore/petstoreapp/src/main/resources/static/content/version.json - run: cat petstore/petstoreapp/src/main/resources/static/content/version.json From b8a8a57042f858d980adc50c911ba4c97a08c9b5 Mon Sep 17 00:00:00 2001 From: Chris Tremblay <62187826+chtrembl@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:43:52 -0400 Subject: [PATCH 3/3] Update petstoreapp_ci_cd_to_appservice.yml --- .github/workflows/petstoreapp_ci_cd_to_appservice.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/petstoreapp_ci_cd_to_appservice.yml b/.github/workflows/petstoreapp_ci_cd_to_appservice.yml index f823ae38..1304dfa8 100644 --- a/.github/workflows/petstoreapp_ci_cd_to_appservice.yml +++ b/.github/workflows/petstoreapp_ci_cd_to_appservice.yml @@ -27,8 +27,8 @@ jobs: npm run build - name: Copy minified Soul Machines React app to Spring Boot static resources run: | - mv build/static/ ../src/main/resources/static - mv build/index.html ../src/main/resources/templates + mv petstore/petstoreapp/soulmachines-react-app/build/static/ petstore/petstoreapp/src/main/resources/static + mv petstore/petstoreapp/soulmachines-react-app/build/index.html petstore/petstoreapp/src/main/resources/templates - name: Update the version.json run: echo -n -e "{\"version\":\"${{ github.sha }}\",\"date\":\"$(date '+%m-%d-%Y %H:%M:%S')\"}" > petstore/petstoreapp/src/main/resources/static/content/version.json - run: cat petstore/petstoreapp/src/main/resources/static/content/version.json