Skip to content

Commit 6e62054

Browse files
committed
Merge branch 'develop' of https://github.com/HuemulSolutions/mutual_validainfra_back into develop
2 parents 26b8014 + c35a681 commit 6e62054

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build and deploy Node.js project to Azure Function App - af-mutual-valida-dev-001
5+
6+
on:
7+
push:
8+
branches:
9+
- develop
10+
workflow_dispatch:
11+
12+
env:
13+
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
14+
NODE_VERSION: '18.x' # set this to the node version to use (supports 8.x, 10.x, 12.x)
15+
16+
jobs:
17+
build-and-deploy:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: 'Checkout GitHub Action'
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node ${{ env.NODE_VERSION }} Environment
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ env.NODE_VERSION }}
27+
28+
- name: 'Resolve Project Dependencies Using Npm'
29+
shell: bash
30+
run: |
31+
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
32+
npm install
33+
npm run build --if-present
34+
npm run test --if-present
35+
popd
36+
37+
- name: 'Run Azure Functions Action'
38+
uses: Azure/functions-action@v1
39+
id: fa
40+
with:
41+
app-name: 'af-mutual-valida-dev-001'
42+
slot-name: 'Production'
43+
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
44+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_5B7ED073E22B479387887662E825E405 }}

0 commit comments

Comments
 (0)