Skip to content

Commit 8a57746

Browse files
committed
fix: add csproje files in target migrations project
1 parent 1099602 commit 8a57746

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/main_eventz-api.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)