Skip to content

Upgrade to .NET 8

Upgrade to .NET 8 #69

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Server-release to slot release
on:
push:
branches:
- releases/*
defaults:
run:
working-directory: MeetUpPlanner/Server
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Set up .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: dotnet publish -c Release -o /myapp
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v1
with:
app-name: 'meetup-planner'
slot-name: 'release'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_RELEASE }}
package: /myapp