Changed output for artifacts-path to fix issue compiling solution

This commit is contained in:
2025-01-15 23:46:50 -05:00
parent 4a0cd6a91c
commit 1f2a132687

View File

@@ -7,7 +7,6 @@ on:
env:
AZURE_WEBAPP_NAME: hutopy-backend-api
AZURE_WEBAPP_PACKAGE_PATH: '.'
DOTNET_VERSION: '8.0.x'
jobs:
@@ -31,7 +30,7 @@ jobs:
cd backend
dotnet restore
dotnet build --configuration Release
dotnet publish --configuration Release --output '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/backend-app'
dotnet publish --no-build --configuration Release --artifacts-path ./publish/
# Deploy to Azure WebApp
- name: Deploy to Azure WebApp
@@ -39,4 +38,4 @@ jobs:
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/backend-app'
package: './publish/web/'