Skip to content

Bump Microsoft.VisualStudio.Web.CodeGeneration.Design (#329) #162

Bump Microsoft.VisualStudio.Web.CodeGeneration.Design (#329)

Bump Microsoft.VisualStudio.Web.CodeGeneration.Design (#329) #162

# 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: Deploy to Staging
on:
push:
branches:
- dev
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v1
with:
app-name: 'edliz(staging)'
slot-name: 'staging'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_154ffd72748d4773a1fa4d359622debc }}
package: ${{env.DOTNET_ROOT}}/myapp