Skip to content

fixed Azure webapp name #6

fixed Azure webapp name

fixed Azure webapp name #6

Workflow file for this run

name: Build and Deploy to Azure
on:
push:
branches:
- main
env:
AZURE_WEBAPP_NAME: manage-task-fdenbvbxe3hbffc2.southafricanorth-01.azurewebsites.net
AZURE_WEBAPP_PACKAGE_PATH: './publish'
DOTNET_VERSION: '8.0.x'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build TaskManagementApi.sln --configuration Release --no-restore
- name: Test
run: dotnet test TaskManagementApi.sln --no-build --verbosity normal
- name: Publish
run: dotnet publish src/TaskManagementApi/TaskManagementApi.csproj -c Release -o publish
- name: Deploy
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ./publish