From 52008c458c11111d275bd30be077a77f50e39647 Mon Sep 17 00:00:00 2001 From: Prince Kumar Prasad Date: Thu, 12 Sep 2024 18:14:49 +0530 Subject: [PATCH] Update main_geotrackr-docs.yml --- .github/workflows/main_geotrackr-docs.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main_geotrackr-docs.yml b/.github/workflows/main_geotrackr-docs.yml index ec1fc4b..af16ec6 100644 --- a/.github/workflows/main_geotrackr-docs.yml +++ b/.github/workflows/main_geotrackr-docs.yml @@ -21,15 +21,20 @@ jobs: with: node-version: '20.x' - - name: npm install + - name: Install dependencies run: | cd docs npm install + - name: Build the project + run: | + cd docs + npm run build + - name: Zip artifact for deployment run: | cd docs - zip -r ../release.zip . -x "node_modules/*" + zip -r ../release.zip dist - name: Upload artifact for deployment job uses: actions/upload-artifact@v3 @@ -61,4 +66,4 @@ jobs: with: app-name: 'geotrackr-docs' publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_DOCS }} - package: . + package: dist