Skip to content

Commit 3bceac2

Browse files
Update backend_percept.yml
1 parent a1e08a6 commit 3bceac2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/backend_percept.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525

2626
- name: npm install, build, and test
2727
run: |
28+
cd backend
2829
npm install
2930
npm run build --if-present
30-
npm run test --if-present
3131
3232
- name: Zip artifact for deployment
3333
run: zip release.zip ./* -r
@@ -41,12 +41,12 @@ jobs:
4141
deploy:
4242
runs-on: ubuntu-latest
4343
needs: build
44-
environment:
45-
name: 'Production'
44+
environment:
45+
name: 'Production'
4646
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
47+
permissions:
48+
id-token: write #This is required for requesting the JWT
49+
contents: read #This is required for actions/checkout
5050

5151
steps:
5252
- name: Download artifact from build job
@@ -56,13 +56,13 @@ jobs:
5656

5757
- name: Unzip artifact for deployment
5858
run: unzip release.zip
59-
60-
- name: Login to Azure
61-
uses: azure/login@v2
62-
with:
63-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_406F78085DD54EB7BB32062742EE79AA }}
64-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_DE5A7AB2E1C34D75896C283CCF358945 }}
65-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CED04A872A2244AAA934022CF029B7AD }}
59+
60+
- name: Login to Azure
61+
uses: azure/login@v2
62+
with:
63+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_406F78085DD54EB7BB32062742EE79AA }}
64+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_DE5A7AB2E1C34D75896C283CCF358945 }}
65+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CED04A872A2244AAA934022CF029B7AD }}
6666

6767
- name: 'Deploy to Azure Web App'
6868
id: deploy-to-webapp
@@ -71,4 +71,4 @@ jobs:
7171
app-name: 'percept'
7272
slot-name: 'Production'
7373
package: .
74-
74+

0 commit comments

Comments
 (0)