Skip to content

fix:azureDeployYaml

fix:azureDeployYaml #4

Workflow file for this run

name: Build and Deploy to Azure
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore
run: dotnet restore ./backend.sln
- name: Build
run: dotnet build ./backend.sln --configuration Release --no-restore
- name: Publish
run: dotnet publish ./backend.sln --configuration Release --no-build --output './publish'
- name: Deploy to Azure
uses: azure/webapps-deploy@v2
with:
app-name: apekade-server
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: './publish'