Skip to content

update: AddBasketProductItemCommandHandler #28

update: AddBasketProductItemCommandHandler

update: AddBasketProductItemCommandHandler #28

Workflow file for this run

name: Deploy Eshop API 🚀
on:
workflow_dispatch:
push:
branches:
- main
env:
AZURE_WEBAPP_NAME: "eshop-clean-architecture"
AZURE_WEBAPP_PACKAGE_PATH: "./publish"
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore ./src/API/CleanArchitecture.Api/CleanArchitecture.Api.csproj
- name: Buid
run: dotnet build ./src/API/CleanArchitecture.Api/CleanArchitecture.Api.csproj --configuration Release --no-restore
- name: Publish
run: dotnet publish ./src/API/CleanArchitecture.Api/CleanArchitecture.Api.csproj --configuration Release --output '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}'
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.API_PUBLISH_SECRET }}
package: "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"