From ffb214a80a7247a59656eaab94ad6e687c867584 Mon Sep 17 00:00:00 2001 From: wangjianing Date: Tue, 16 Jan 2024 17:14:08 +0100 Subject: [PATCH] chore: ci/cd sub dir --- .github/workflows/master_gm5bs-server.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/master_gm5bs-server.yml b/.github/workflows/master_gm5bs-server.yml index a3a5f7b..5962657 100644 --- a/.github/workflows/master_gm5bs-server.yml +++ b/.github/workflows/master_gm5bs-server.yml @@ -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 @@ -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 @@ -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 @@ -68,4 +69,3 @@ jobs: app-name: 'gm5bs-server' slot-name: 'Production' package: . - \ No newline at end of file