Archive dinner-suggestions change; sync delta specs to main #38
This file contains hidden or 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
| name: Build and deploy .NET Function App to func-ezdinner-prod-02 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| AZURE_FUNCTIONAPP_NAME: func-ezdinner-prod-02 | |
| AZURE_FUNCTIONAPP_PACKAGE_PATH: src/EzDinner.Functions/published | |
| AZURE_FUNCTIONAPP_PUBLISH_PROFILE: ${{ secrets.FUNC_EZDINNER_PROD_02_PUBLISH_PROFILE }} | |
| CONFIGURATION: Release | |
| DOTNET_CORE_VERSION: 10.0.x | |
| WORKING_DIRECTORY: api/src/EzDinner.Functions | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_CORE_VERSION }} | |
| - name: Restore | |
| run: dotnet restore "${{ env.WORKING_DIRECTORY }}" | |
| - name: Build | |
| run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore | |
| - name: Publish | |
| run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}" | |
| - name: Deploy to Azure Function App | |
| uses: Azure/functions-action@v1 | |
| with: | |
| app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} | |
| publish-profile: ${{ env.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} | |
| package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} |