-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (29 loc) · 922 Bytes
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on: push
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master
- name: 'Login via Azure CLI'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: 'npm install, build, and test'
run: |
#echo 'PUBLISH_PROFILE=${{ secrets.azureWebAppPublishProfile}}' >> $GITHUB_ENV
npm prune --production
npm install
npm run build --if-present
# npm run test --if-present
- name: 'Run Azure webapp deploy action using publish profile credentials'
uses: azure/webapps-deploy@releases/v2
with:
app-name: testnodejs20
resource-group-name: testshpraka
#publish-profile: ${{ env.PUBLISH_PROFILE }}