Skip to content

Commit

Permalink
chore: ci/cd sub dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jianingroja committed Jan 16, 2024
1 parent 48b9e5a commit ffb214a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/master_gm5bs-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
npm install
npm run build --if-present
npm run test --if-present
working-directory: ./server

- name: Zip artifact for deployment
run: zip release.zip ./* -r
run: zip release.zip ./server/* -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/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7F19EF6243BD478990D6D1FE6A0C5C07 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_290E8854B6464E318EE0530C0ADB9DFA }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9B9FB7CCB0F244E8AED269782F6236FE }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7F19EF6243BD478990D6D1FE6A0C5C07 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_290E8854B6464E318EE0530C0ADB9DFA }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9B9FB7CCB0F244E8AED269782F6236FE }}

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

0 comments on commit ffb214a

Please sign in to comment.