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 63d1e31 commit ef452ce
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/AzureFunction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,53 +59,53 @@ 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 }}/output3
- 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
with:
name: function-artifact
path: ${{ env.app_path }}/output3
path: ${{ env.app_path }}/output
retention-days: 5
overwrite: true
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
# - 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/[email protected]
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/[email protected]
# 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

0 comments on commit ef452ce

Please sign in to comment.