Skip to content

Added some extra comments. In particular, added a label to each DTO. #50

Added some extra comments. In particular, added a label to each DTO.

Added some extra comments. In particular, added a label to each DTO. #50

Workflow file for this run

# 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: Build and deploy ASP.Net Core app to Azure Web App - fforacle
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
permissions:
contents: read # This is required for actions/checkout
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"
- name: Build project
run: dotnet build FFOracle/FFOracle.csproj --configuration Release
- name: Publish project
run: dotnet publish FFOracle/FFOracle.csproj -c Release -o ./publish
- name: Upload artifact for deployment
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ./publish
deploy:
runs-on: windows-latest
needs: build
permissions:
id-token: write
contents: read
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: .net-app
path: ./publish
- name: Login to Azure
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: "fforacle"
slot-name: "Production"
package: ./publish