|
1 |
| -# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action |
2 |
| -# More GitHub Actions for Azure: https://github.com/Azure/actions |
3 |
| - |
4 |
| -name: Build and deploy dotnet core app to Azure Function App - oddscollector-functions |
5 |
| - |
6 |
| -on: |
7 |
| - push: |
8 |
| - branches: |
9 |
| - - master |
10 |
| - workflow_dispatch: |
11 |
| - |
12 |
| -env: |
13 |
| - AZURE_FUNCTIONAPP_PACKAGE_PATH: 'OddsCollector.Functions' # set this to the path to your web app project, defaults to the repository root |
14 |
| - DOTNET_VERSION: '8.0.x' # set this to the dotnet version to use |
15 |
| - |
16 |
| -jobs: |
17 |
| - build-and-deploy: |
18 |
| - runs-on: windows-latest |
19 |
| - steps: |
20 |
| - - name: 'Checkout GitHub Action' |
21 |
| - uses: actions/checkout@v4 |
22 |
| - |
23 |
| - - name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment |
24 |
| - uses: actions/setup-dotnet@v1 |
25 |
| - with: |
26 |
| - dotnet-version: ${{ env.DOTNET_VERSION }} |
27 |
| - |
28 |
| - - name: 'Resolve Project Dependencies Using Dotnet' |
29 |
| - shell: pwsh |
30 |
| - run: | |
31 |
| - pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' |
32 |
| - dotnet build --configuration Release --output ./output |
33 |
| - popd |
34 |
| -
|
35 |
| - - name: 'Run Azure Functions Action' |
36 |
| - uses: Azure/functions-action@v1 |
37 |
| - id: fa |
38 |
| - with: |
39 |
| - app-name: 'oddscollector-functions' |
40 |
| - slot-name: 'Production' |
41 |
| - package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output' |
42 |
| - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_84942172C4BE4DDDBE1C48EFB32A2A9A }} |
| 1 | +# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action |
| 2 | +# More GitHub Actions for Azure: https://github.com/Azure/actions |
| 3 | + |
| 4 | +name: Build and deploy to Azure |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - master |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | +env: |
| 13 | + AZURE_FUNCTIONAPP_PACKAGE_PATH: 'OddsCollector.Functions' # set this to the path to your web app project, defaults to the repository root |
| 14 | + DOTNET_VERSION: '8.0.x' # set this to the dotnet version to use |
| 15 | + |
| 16 | +jobs: |
| 17 | + build-and-deploy: |
| 18 | + runs-on: windows-latest |
| 19 | + steps: |
| 20 | + - name: 'Checkout GitHub Action' |
| 21 | + uses: actions/checkout@v4 |
| 22 | + |
| 23 | + - name: Setup .NET |
| 24 | + uses: actions/setup-dotnet@v1 |
| 25 | + with: |
| 26 | + dotnet-version: ${{ env.DOTNET_VERSION }} |
| 27 | + |
| 28 | + - name: 'Resolve Project Dependencies Using Dotnet' |
| 29 | + shell: pwsh |
| 30 | + run: | |
| 31 | + pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' |
| 32 | + dotnet build --configuration Release --output ./output |
| 33 | + popd |
| 34 | +
|
| 35 | + - name: 'Run Azure Functions Action' |
| 36 | + uses: Azure/functions-action@v1 |
| 37 | + id: fa |
| 38 | + with: |
| 39 | + app-name: 'oddscollector-functions' |
| 40 | + slot-name: 'Production' |
| 41 | + package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output' |
| 42 | + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_84942172C4BE4DDDBE1C48EFB32A2A9A }} |
0 commit comments