From 1fd135c24e523803def43af153b0ebe908945a68 Mon Sep 17 00:00:00 2001 From: Sakura Akeno Isayeki Date: Thu, 1 Feb 2024 18:58:11 +0100 Subject: [PATCH] fix(ci): Update build workflow for Angular app - Removed unnecessary step to switch working directory - Set the correct working directory for installing dependencies and building the app - Updated artifact path to reflect the correct location of the built files --- .github/workflows/build-package-web.yml | 7 +++---- .github/workflows/deploy-preview.yml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-package-web.yml b/.github/workflows/build-package-web.yml index 57c17c0..d8ddeb6 100644 --- a/.github/workflows/build-package-web.yml +++ b/.github/workflows/build-package-web.yml @@ -30,17 +30,16 @@ jobs: - name: Install Angular CLI run: npm install -g @angular/cli - - name: Switch working directory to webapp project - run: cd ./wowskarma.app - - name: Install dependencies + working-directory: wowskarma.app run: npm install - name: Build Angular app + working-directory: wowskarma.app run: ng build --configuration=${{ inputs.build_configuration }} - name: Upload Artifacts uses: actions/upload-artifact@v4 with: name: wowskarma_app - path: ./dist \ No newline at end of file + path: ./wowskarma.app/dist \ No newline at end of file diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index f23ff3c..4e8e510 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -28,7 +28,7 @@ jobs: needs: build-test-solution uses: ./.github/workflows/build-package-web.yml with: - build_configuration: 'Preview' + build_configuration: 'preview' # Deploy to server deploy-preview: