Skip to content

Commit

Permalink
fix(ci): Update build and package commands for API and webapp projects
Browse files Browse the repository at this point in the history
- Updated the build command in the API workflow to specify the project file path.
- Updated the publish command in the API workflow to specify the project file path and output directory.
- Added a step in the webapp workflow to switch working directory to the webapp project.
- Added a step in the webapp workflow to install dependencies.
  • Loading branch information
SakuraIsayeki committed Feb 1, 2024
1 parent e0e9e4c commit 02a83c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-package-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
# include-prerelease: true

- name: Build .NET project (prod)
run: dotnet build --configuration ${{ inputs.build_configuration }}
run: dotnet build ./WowsKarma.Api/WowsKarma.Api.csproj --configuration ${{ inputs.build_configuration }}

- name: Package API (prod)
run: dotnet publish --configuration ${{ inputs.build_configuration }} --output ./publish
run: dotnet publish ./WowsKarma.Api/WowsKarma.Api.csproj --configuration ${{ inputs.build_configuration }} --output ./publish

- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-package-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ 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
run: npm install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: deploy-preview.yml
name: Deploy Preview to Server

on:
push:
Expand Down

0 comments on commit 02a83c5

Please sign in to comment.