Add option to create a VS test playlist (#187) #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |