|
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: dev_api |
5 | | - |
6 | | -on: |
7 | | - push: |
8 | | - branches: |
9 | | - - dev |
10 | | - workflow_dispatch: |
11 | | - |
12 | | -env: |
13 | | - AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root |
14 | | - |
15 | | -jobs: |
16 | | - deploy: |
17 | | - if: github.event.repository.fork == false && github.event_name == 'push' |
18 | | - runs-on: windows-latest |
19 | | - |
20 | | - steps: |
21 | | - - name: 'Checkout GitHub Action' |
22 | | - uses: actions/checkout@v4 |
23 | | - |
24 | | - - name: 'Run Azure Functions Action' |
25 | | - uses: Azure/functions-action@v1 |
26 | | - id: fa |
27 | | - with: |
28 | | - app-name: 'cippjta72' |
29 | | - slot-name: 'Production' |
30 | | - package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} |
31 | | - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_5B44448119C645C099EE192346D7433A }} |
| 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: dev_api |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - dev |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | +env: |
| 13 | + AZURE_FUNCTIONAPP_PACKAGE_PATH: "." # set this to the path to your web app project, defaults to the repository root |
| 14 | + |
| 15 | +jobs: |
| 16 | + deploy: |
| 17 | + permissions: |
| 18 | + id-token: write #This is required for requesting the JWT |
| 19 | + contents: read #This is required for actions/checkout |
| 20 | + if: github.event.repository.fork == false && github.event_name == 'push' |
| 21 | + runs-on: windows-latest |
| 22 | + |
| 23 | + steps: |
| 24 | + - name: "Checkout GitHub Action" |
| 25 | + uses: actions/checkout@v4 |
| 26 | + with: |
| 27 | + persist-credentials: false |
| 28 | + |
| 29 | + - name: Login to Azure |
| 30 | + uses: azure/login@v2 |
| 31 | + with: |
| 32 | + client-id: ${{ secrets.DEV_CLIENTID }} |
| 33 | + tenant-id: ${{ secrets.DEV_TENANTID }} |
| 34 | + subscription-id: ${{ secrets.DEV_SUBSCRIPTIONID }} |
| 35 | + |
| 36 | + - name: "Run Azure Functions Action" |
| 37 | + uses: Azure/functions-action@v1 |
| 38 | + id: fa |
| 39 | + with: |
| 40 | + app-name: "cippjta72" |
| 41 | + slot-name: "Production" |
| 42 | + package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} |
0 commit comments