Skip to content

Commit

Permalink
fix(ci): Update build workflow for Angular app
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
SakuraIsayeki committed Feb 1, 2024
1 parent 02a83c5 commit 1fd135c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-package-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
path: ./wowskarma.app/dist
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1fd135c

Please sign in to comment.