Skip to content

Commit

Permalink
Use a subdirectory.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectsByJackHe authored Jul 2, 2024
1 parent c2a768d commit 3acc80b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/main_netperfapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:

- name: npm install, build, and test
run: |
cd ./netperf-1es-syncer
npm install
npm run build --if-present
npm run test --if-present
- name: Zip artifact for deployment
run: zip release.zip ./* -r
run: zip release.zip ./netperf-1es-syncer/* -r

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
Expand All @@ -42,8 +43,8 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
Expand All @@ -53,13 +54,13 @@ jobs:

- name: Unzip artifact for deployment
run: unzip release.zip

- name: Login to Azure
uses: azure/#@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_05D4C4AB0E644643879A04E73866D340 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_BA5347B0E57443BF9F939B5BBE1E3D1C }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_1051F037AA654C8F86FE11E7CD8772B2 }}

- name: Login to Azure
uses: azure/#@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_05D4C4AB0E644643879A04E73866D340 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_BA5347B0E57443BF9F939B5BBE1E3D1C }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_1051F037AA654C8F86FE11E7CD8772B2 }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
Expand All @@ -68,4 +69,4 @@ jobs:
app-name: 'netperfapi'
slot-name: 'Production'
package: .


0 comments on commit 3acc80b

Please # to comment.