diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 614902cd0f6..8704dbb1070 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -28,10 +28,17 @@ jobs: npm run build - name: List dist directory contents - run: ls -l src/app/client/dist + working-directory: src/app/client + run: ls -l dist - - name: Move index.html to index.ejs - run: mv src/app/client/dist/index.html src/app/client/dist/index.ejs + - name: Move index.html to index.ejs if it exists + working-directory: src/app/client + run: | + if [ -f dist/index.html ]; then + mv dist/index.html dist/index.ejs + else + echo "File dist/index.html does not exist" + fi - name: Set up dependencies for server run: | @@ -63,4 +70,4 @@ jobs: cd - - name: Run Sonar Scanner - run: /tmp/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner + run: /tmp/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner \ No newline at end of file