Skip to content

Feat/dependency injection with activators #60

Feat/dependency injection with activators

Feat/dependency injection with activators #60

# 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: (backend) Build and deploy example
on:
push:
branches: [master]
paths-ignore:
- 'example/frontend/**'
pull_request:
branches: [master]
paths-ignore:
- 'example/frontend/**'
workflow_dispatch:
defaults:
run:
working-directory: example/backend
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: '3.1.102'
- 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@v2
with:
app-name: 'portabletext-backend-nhi'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_d84a234982934bbb933ab6ceb52d16c0 }}
package: ${{env.DOTNET_ROOT}}/myapp