From 782b88f16aad244ec4a098250bf840d7fb33c166 Mon Sep 17 00:00:00 2001 From: evan-scales Date: Tue, 23 Jan 2024 22:40:15 -0500 Subject: [PATCH] update --- .github/workflows/expiredposts_fujobfunctions.yml | 2 +- FU.API/FU.Functions/FU.Functions.csproj | 5 ++++- FU.API/FU.Functions/Function1.cs | 1 + FU.API/FU.Functions/Program.cs | 6 ++++++ 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 FU.API/FU.Functions/Program.cs diff --git a/.github/workflows/expiredposts_fujobfunctions.yml b/.github/workflows/expiredposts_fujobfunctions.yml index 39be0d3b..4b5085d4 100644 --- a/.github/workflows/expiredposts_fujobfunctions.yml +++ b/.github/workflows/expiredposts_fujobfunctions.yml @@ -10,7 +10,7 @@ on: workflow_dispatch: env: - AZURE_FUNCTIONAPP_PACKAGE_PATH: './FU.API' # set this to the path to your web app project, defaults to the repository root + AZURE_FUNCTIONAPP_PACKAGE_PATH: './FU.API/FU.Functions' # set this to the path to your web app project, defaults to the repository root DOTNET_VERSION: '7.0.x' # set this to the dotnet version to use jobs: diff --git a/FU.API/FU.Functions/FU.Functions.csproj b/FU.API/FU.Functions/FU.Functions.csproj index 49a3f945..e9574e80 100644 --- a/FU.API/FU.Functions/FU.Functions.csproj +++ b/FU.API/FU.Functions/FU.Functions.csproj @@ -1,9 +1,12 @@ - + + Exe net7.0 v4 + + diff --git a/FU.API/FU.Functions/Function1.cs b/FU.API/FU.Functions/Function1.cs index 5d2bca77..14c7e986 100644 --- a/FU.API/FU.Functions/Function1.cs +++ b/FU.API/FU.Functions/Function1.cs @@ -12,6 +12,7 @@ namespace FU.Functions; using Microsoft.Extensions.Configuration; using Microsoft.EntityFrameworkCore; using FU.API.Data; +using Microsoft.Azure.Functions.Worker; public static class Function1 { diff --git a/FU.API/FU.Functions/Program.cs b/FU.API/FU.Functions/Program.cs new file mode 100644 index 00000000..f5e95c5f --- /dev/null +++ b/FU.API/FU.Functions/Program.cs @@ -0,0 +1,6 @@ +using Microsoft.Extensions.Hosting; + +var host = new HostBuilder() + .Build(); + +await host.RunAsync();