Skip to content

Limit items (#186)

Limit items (#186) #76

Workflow file for this run

# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Publish Azure Assets
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v2
- name: Setup .NET Core 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Setup .NET Core 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
include-prerelease: true
- name: 'Build Functions'
run: dotnet build DevOps.Functions/DevOps.Functions.csproj --configuration Release --output ./artifacts/func
- name: 'Publish Function to Azure'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'runfo-func'
slot-name: 'production'
package: 'artifacts/func'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_d880beb4d5a24b5f896e5e8987c41cee }}
- name: 'Build WebApp'
run: dotnet publish DevOps.Status/DevOps.Status.csproj --configuration Release --output ./artifacts/webapp
- name: 'Publish WebApp to Azure'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'runfo'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_20c71607d35440a982abc5c3456af5e7 }}
package: 'artifacts/webapp'