From 90cced4083bc25255b1ad003dbb4e4a013bae409 Mon Sep 17 00:00:00 2001 From: Ishan Date: Sat, 20 Apr 2024 01:05:43 +0530 Subject: [PATCH] Chat gpt deploy --- .github/workflows/deploy.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 33fbc53..87736e5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -17,11 +17,17 @@ jobs: npm install cd server && npm run build + - name: Find dist directory + id: find-dist + run: | + dist_dir=$(find . -type d -name "dist") + echo "::set-output name=dist_dir::$dist_dir" + - name: Verify build completion and dist directory run: | - if [ -d "client/dist" ]; then + if [ -d "${{ steps.find-dist.outputs.dist_dir }}" ]; then echo "Build completed successfully!" - echo "Path to dist directory: $(realpath client/dist)" + echo "Path to dist directory: ${{ steps.find-dist.outputs.dist_dir }}" else echo "Build failed or dist directory does not exist." exit 1 @@ -32,4 +38,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GH_PAGES_TOKEN }} - publish_dir: ./client/dist # Use the dist directory found in the verification step + publish_dir: ${{ steps.find-dist.outputs.dist_dir }}