Skip to content

Commit b6a218b

Browse files
committed
Update CI/CD workflow to specify project file for build and publish steps
1 parent 3f4adca commit b6a218b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
# Run dotnet build and publish
2929
- name: dotnet build and publish
3030
run: |
31-
dotnet restore
32-
dotnet build --configuration Release
33-
dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/publish'
31+
dotnet restore ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/webapp01.csproj
32+
dotnet build --configuration Release ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/webapp01.csproj
33+
dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/publish' ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/webapp01.csproj
3434
3535
- name: Azure Login
3636
uses: azure/login@v2

0 commit comments

Comments
 (0)