Skip to content

Changed some UI elements on home page to reflect .NET 10 and Windows … #11

Changed some UI elements on home page to reflect .NET 10 and Windows …

Changed some UI elements on home page to reflect .NET 10 and Windows … #11

Workflow file for this run

name: Deploy to Azure App Service
on:
push:
branches:
- main
workflow_dispatch:
env:
AZURE_WEBAPP_NAME: PerfSimDotNet
AZURE_WEBAPP_PACKAGE_PATH: './publish'
DOTNET_VERSION: '10.0.x'
permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore src/PerfProblemSimulator/PerfProblemSimulator.csproj
- name: Build
run: dotnet build src/PerfProblemSimulator/PerfProblemSimulator.csproj --configuration Release --no-restore
- name: Publish
run: dotnet publish src/PerfProblemSimulator/PerfProblemSimulator.csproj --configuration Release --no-build --output ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}