Update build.yml
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -22,23 +22,29 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore WebAPI
|
||||||
run: dotnet restore
|
run: dotnet restore src/Bimix.API/Bimix.API.csproj
|
||||||
|
|
||||||
- name: Build solution
|
- name: Restore WebUI
|
||||||
run: dotnet build --configuration Release --no-restore
|
run: dotnet restore src/Bimix.UI.Web/Bimix.UI.Web.csproj
|
||||||
|
|
||||||
|
- name: Build WebAPI
|
||||||
|
run: dotnet build src/Bimix.API/Bimix.API.csproj --configuration Release --no-restore
|
||||||
|
|
||||||
|
- name: Build WebUI
|
||||||
|
run: dotnet build src/Bimix.UI.Web/Bimix.UI.Web.csproj --configuration Release --no-restore
|
||||||
|
|
||||||
- name: Publish WebAPI
|
- name: Publish WebAPI
|
||||||
run: |
|
run: |
|
||||||
dotnet publish Bimix.API/Bimix.API.csproj \
|
dotnet publish Bimix.API/Bimix.API.csproj \
|
||||||
--configuration Release \
|
--configuration Release \
|
||||||
--output ./publish/Bimix-WebAPI
|
--output ./publish/Bimix-WebAPI
|
||||||
|
|
||||||
- name: Publish Web (Blazor Server)
|
- name: Publish Web (Blazor Server)
|
||||||
run: |
|
run: |
|
||||||
dotnet publish Bimix.UI.Web/Bimix.UI.Web.csproj \
|
dotnet publish Bimix.UI.Web/Bimix.UI.Web.csproj \
|
||||||
--configuration Release \
|
--configuration Release \
|
||||||
--output ./publish/Bimix-Web
|
--output ./publish/Bimix-Web
|
||||||
|
|
||||||
- name: Upload publish artifact
|
- name: Upload publish artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user