-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef452ce
commit 4f859b4
Showing
1 changed file
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
- 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 |