File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,10 +46,19 @@ jobs:
4646 contents : read
4747
4848 steps :
49+ # Checkout source code for EF migrations
50+ - uses : actions/checkout@v4
51+
52+ - name : Set up .NET Core
53+ uses : actions/setup-dotnet@v4
54+ with :
55+ dotnet-version : ' 8.x'
56+
4957 - name : Download artifact from build job
5058 uses : actions/download-artifact@v4
5159 with :
5260 name : .net-app
61+ path : ./publish
5362
5463 - name : Login to Azure
5564 uses : azure/login@v2
@@ -67,11 +76,11 @@ jobs:
6776 env :
6877 CONNECTION_STRING : ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
6978 run : |
70- dotnet ef database update --project eventz-api/Eventz.Infrastructure --startup-project eventz-api/Eventz.Api --connection $env:CONNECTION_STRING
79+ dotnet ef database update --project eventz-api/Eventz.Infrastructure/Eventz.Infrastructure.csproj --startup-project eventz-api/Eventz.Api/Eventz.Api.csproj --connection " $env:CONNECTION_STRING"
7180
7281 - name : Deploy to Azure Web App
7382 uses : azure/webapps-deploy@v3
7483 with :
7584 app-name : ' eventz-api'
7685 slot-name : ' Production'
77- package : .
86+ package : ./publish
You can’t perform that action at this time.
0 commit comments