From 4f859b4efa712482f53e2171b11383b6695d7694 Mon Sep 17 00:00:00 2001 From: Felipe Augusto Date: Mon, 14 Oct 2024 18:59:02 -0300 Subject: [PATCH] feat: update gh actions --- .github/workflows/AzureFunction.yaml | 70 ++++++++++++++-------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/AzureFunction.yaml b/.github/workflows/AzureFunction.yaml index 8fa5e11..5c79c54 100644 --- a/.github/workflows/AzureFunction.yaml +++ b/.github/workflows/AzureFunction.yaml @@ -59,14 +59,14 @@ jobs: run: | dotnet build ${{ env.app_full_path }} --configuration Release --output ${{ env.app_path }}/output3 --no-incremental - - name: 'Run Azure Functions Action' - uses: Azure/functions-action@v1.5.2 - id: deploy-function-app - with: - app-name: ${{ env.app_name }} - slot-name: 'production' - publish-profile: ${{ secrets.FUNCTION_PUBLISH_PROFILE }} - package: ${{ env.app_path }}/output + # - name: 'Run Azure Functions Action' + # uses: Azure/functions-action@v1.5.2 + # id: deploy-function-app + # with: + # app-name: ${{ env.app_name }} + # slot-name: 'production' + # publish-profile: ${{ secrets.FUNCTION_PUBLISH_PROFILE }} + # package: ${{ env.app_path }}/output - name: 'Publish Artifact for Azure Functions' uses: actions/upload-artifact@v4 @@ -78,34 +78,34 @@ jobs: compression-level: 9 if-no-files-found: error - # deploy: - # if: ${{ github.event_name != 'pull_request' }} - # runs-on: ubuntu-latest - # needs: build + deploy: + if: ${{ github.event_name != 'pull_request' }} + runs-on: ubuntu-latest + needs: build - # steps: - # - name: Log in to Azure - # uses: azure/login@v2.2.0 - # with: - # creds: ${{ secrets.AZURE_CREDENTIALS }} + steps: + - name: Log in to Azure + uses: azure/login@v2.2.0 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} - # - name: Download Artifact for Azure Functions - # uses: actions/download-artifact@v4 - # with: - # name: function-artifact - # pattern: function-artifact* - # path: download + - name: Download Artifact for Azure Functions + uses: actions/download-artifact@v4 + with: + name: function-artifact + pattern: function-artifact* + path: download - # # unzip function-artifact.zip -d ./function-extracted - # - name: 'Run Azure Functions Action' - # uses: Azure/functions-action@v1.5.2 - # id: deploy-function-app - # with: - # app-name: ${{ env.app_name }} - # slot-name: 'production' - # publish-profile: ${{ secrets.FUNCTION_PUBLISH_PROFILE }} - # package: ./download/ + # unzip function-artifact.zip -d ./function-extracted + - name: 'Run Azure Functions Action' + uses: Azure/functions-action@v1.5.2 + id: deploy-function-app + with: + app-name: ${{ env.app_name }} + slot-name: 'production' + publish-profile: ${{ secrets.FUNCTION_PUBLISH_PROFILE }} + package: ./download/ - # - name: Log out from Azure - # run: | - # az logout + - name: Log out from Azure + run: | + az logout