diff --git a/.github/workflows/azure-functions-app-dotnet.yml.stop b/.github/workflows/azure-functions-app-dotnet.yml.stop index 3d530fe9..5a4fb3f3 100644 --- a/.github/workflows/azure-functions-app-dotnet.yml.stop +++ b/.github/workflows/azure-functions-app-dotnet.yml.stop @@ -1,4 +1,4 @@ -# name: Deploy DotNet project to Azure Function App +# name: Deploy WebFunctions to Azure # on: # push: diff --git a/.github/workflows/azure-webapps-dotnet-core.yml b/.github/workflows/azure-webapps-dotnet-core.yml index 583794d9..648d5cdd 100644 --- a/.github/workflows/azure-webapps-dotnet-core.yml +++ b/.github/workflows/azure-webapps-dotnet-core.yml @@ -1,12 +1,12 @@ -name: Build and deploy ASP.Net Core app to an Azure Web App +name: Deploy WebAPI to Azure env: - AZURE_WEBAPP_NAME: GPIC-Stg-WebAPI + AZURE_WEBAPP_NAME: ${{ env.AZURE_WEBAPP_NAME }} AZURE_WEBAPP_PACKAGE_PATH: "." DOTNET_VERSION: "7.0" PROJECT_PATH: "src/Infrastructure/WebAPI/WebAPI.csproj" WEBAPI_PATH: "src/Infrastructure/WebAPI/" - ASPNETCORE_ENVIRONMENT: Development + ASPNETCORE_ENVIRONMENT: ${{ env.ASPNETCORE_ENVIRONMENT }} on: push: @@ -49,7 +49,8 @@ jobs: SEQ_API_KEY=${{ secrets.SEQ_API_KEY }} SEQ_URL=${{ secrets.SEQ_URL }} SMTP_EMAIL_PASSWORD=${{ secrets.SMTP_EMAIL_PASSWORD }} - SMTP_EMAIL_USERNAME=${{ secrets.SMTP_EMAIL_USERNAME }}" > src/Infrastructure/WebAPI/.env + SMTP_EMAIL_USERNAME=${{ secrets.SMTP_EMAIL_USERNAME }} + EXECUTE_MIGRATION=${{ secrets.EXECUTE_MIGRATION }}" > src/Infrastructure/WebAPI/.env - name: Set environment variable run: echo "ASPNETCORE_ENVIRONMENT=${{ env.ASPNETCORE_ENVIRONMENT }}" >> $GITHUB_ENV