Skip to content

Commit

Permalink
feat: update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
felipementel committed Oct 14, 2024
1 parent 5abeb40 commit 3d38414
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/AzureFunction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# 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/[email protected]
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
Expand All @@ -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/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
# steps:
# - name: Log in to Azure
# uses: azure/[email protected]
# 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/artifacts
# - name: Download Artifact for Azure Functions
# uses: actions/download-artifact@v4
# with:
# name: function-artifact
# pattern: function-artifact*
# path: download/artifacts

# unzip function-artifact.zip -d ./function-extracted
- name: 'Run Azure Functions Action'
uses: Azure/[email protected]
id: deploy-function-app
with:
app-name: ${{ env.app_name }}
slot-name: 'production'
publish-profile: ${{ secrets.FUNCTION_PUBLISH_PROFILE }}
package: download/artifacts
# # unzip function-artifact.zip -d ./function-extracted
# - name: 'Run Azure Functions Action'
# uses: Azure/[email protected]
# id: deploy-function-app
# with:
# app-name: ${{ env.app_name }}
# slot-name: 'production'
# publish-profile: ${{ secrets.FUNCTION_PUBLISH_PROFILE }}
# package: download/artifacts

- name: Log out from Azure
run: |
az logout
# - name: Log out from Azure
# run: |
# az logout

0 comments on commit 3d38414

Please sign in to comment.