From 68b902077a4c32148b6d142b938c58d76ae6c4e5 Mon Sep 17 00:00:00 2001 From: Thada Wangthammang Date: Mon, 6 May 2024 02:36:30 +0700 Subject: [PATCH] fix(github-actions): azure functions deploy process --- .github/workflows/e2e.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ac657e5..17ea9e9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -80,13 +80,20 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS_E2E_TESTS }} - - name: Azure CLI script - uses: azure/cli@v2 + - name: Deploy to Azure Functions + uses: Azure/functions-action@v1 with: - azcliversion: 2.58.0 - inlineScript: | - cd examples/with-${{ matrix.runtime }}/.nmt/dist && \ - func azure functionapp publish nmt-e2e-${{ matrix.target }}-${{ secrets[matrix.resource_identifier_key] }} + app-name: nmt-e2e-${{ matrix.target }}-${{ secrets[matrix.resource_identifier_key] }} + package: examples/with-${{ matrix.runtime }}/.nmt/dist + + + # - name: Azure CLI script + # uses: azure/cli@v2 + # with: + # azcliversion: 2.58.0 + # inlineScript: | + # cd examples/with-${{ matrix.runtime }}/.nmt/dist && \ + # func azure functionapp publish nmt-e2e-${{ matrix.target }}-${{ secrets[matrix.resource_identifier_key] }} - name: Wait for the deployment to finish run: sleep 60