Skip to content

Commit

Permalink
ED-4000 feat: Github actions instead of Jenkins-03
Browse files Browse the repository at this point in the history
  • Loading branch information
princegupta1131 committed May 30, 2024
1 parent 8ee4a8d commit 5b686ac
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,27 @@ jobs:
with:
node-version: 18

- name: Install client dependencies and build
- name: Install client dependencies
working-directory: src/app/client
run: |
yarn install --no-progress --production=true
npm run build
run: yarn install --no-progress --production=true

- name: Build client
working-directory: src/app/client
run: npm run build

- name: List all files after build
working-directory: src/app/client
run: find . -type f

- name: List dist directory contents
- name: Check if dist directory exists and list contents
working-directory: src/app/client
run: ls -l dist
run: |
if [ -d dist ]; then
echo "dist directory exists. Listing contents:"
ls -l dist
else
echo "dist directory does not exist"
fi
- name: Move index.html to index.ejs if it exists
working-directory: src/app/client
Expand Down

0 comments on commit 5b686ac

Please sign in to comment.