Bump projects to .NET 8 and package references to latest available (#… #79
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 8.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.100 | |
- name: Setup .NET Core 8.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.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' |