Skip to content

Commit 4ac016b

Browse files
committed
chore: Update workflow name, remove test script, and set static URL (refs #1)
1 parent 623a532 commit 4ac016b

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.github/workflows/main_api-dileepadev.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
22
# More GitHub Actions for Azure: https://github.com/Azure/actions
33

4-
name: Build and deploy Node.js app to Azure Web App - api-dileepadev
4+
name: Build and Deploy to Azure Web App
55

66
on:
77
push:
@@ -23,11 +23,10 @@ jobs:
2323
with:
2424
node-version: '20.x'
2525

26-
- name: npm install, build, and test
26+
- name: npm install and build
2727
run: |
2828
npm install
2929
npm run build --if-present
30-
npm run test --if-present
3130
3231
- name: Zip artifact for deployment
3332
run: zip release.zip ./* -r
@@ -41,12 +40,12 @@ jobs:
4140
deploy:
4241
runs-on: ubuntu-latest
4342
needs: build
44-
environment:
45-
name: 'Production'
46-
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
47-
permissions:
48-
id-token: write #This is required for requesting the JWT
49-
contents: read #This is required for actions/checkout
43+
environment:
44+
name: 'Production'
45+
url: 'https://api.dileepa.dev'
46+
permissions:
47+
id-token: write #This is required for requesting the JWT
48+
contents: read #This is required for actions/checkout
5049

5150
steps:
5251
- name: Download artifact from build job
@@ -56,13 +55,13 @@ jobs:
5655

5756
- name: Unzip artifact for deployment
5857
run: unzip release.zip
59-
60-
- name: Login to Azure
61-
uses: azure/login@v2
62-
with:
63-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_0B93258A67174154B69E790355306C5D }}
64-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_BB2F46B580B7430D9E12584BCE7946E7 }}
65-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_44F4886C39724C4DB8FB985E5EC66F8B }}
58+
59+
- name: Login to Azure
60+
uses: azure/login@v2
61+
with:
62+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_0B93258A67174154B69E790355306C5D }}
63+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_BB2F46B580B7430D9E12584BCE7946E7 }}
64+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_44F4886C39724C4DB8FB985E5EC66F8B }}
6665

6766
- name: 'Deploy to Azure Web App'
6867
id: deploy-to-webapp
@@ -71,4 +70,3 @@ jobs:
7170
app-name: 'api-dileepadev'
7271
slot-name: 'Production'
7372
package: .
74-

0 commit comments

Comments
 (0)