From 6b35945ef14e68c39ae43b3dfe69565600de2f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=E1=BA=ADu=20=C4=90=E1=BB=A9c=20Qu=C3=A2n?= Date: Thu, 5 Sep 2024 21:59:28 +0700 Subject: [PATCH] Reapply "Update master_shelfwise.yml" This reverts commit 1c09f4e405eb00046e224503da9f00ebb988813f. --- .github/workflows/master_shelfwise.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/master_shelfwise.yml b/.github/workflows/master_shelfwise.yml index 8fd3fbe..edf7b8e 100644 --- a/.github/workflows/master_shelfwise.yml +++ b/.github/workflows/master_shelfwise.yml @@ -25,13 +25,13 @@ jobs: run: dotnet build --configuration Release - name: dotnet publish - run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp + run: dotnet publish -c Release -o ${{env.GITHUB_WORKSPACE}}\myapp - name: Upload artifact for deployment job uses: actions/upload-artifact@v4 with: name: .net-app - path: ${{env.DOTNET_ROOT}}/myapp + path: ${{env.GITHUB_WORKSPACE}}\myapp deploy: runs-on: windows-latest @@ -39,21 +39,21 @@ 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 uses: actions/download-artifact@v4 with: name: .net-app - - - name: Login to Azure - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_CE409AC208034873BADEEA197E5B6BF6 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_67D5697047BD465BA636779201D8A00F }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_718A228B56F54AD6857C1171EE68FFA4 }} + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_CE409AC208034873BADEEA197E5B6BF6 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_67D5697047BD465BA636779201D8A00F }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_718A228B56F54AD6857C1171EE68FFA4 }} - name: Deploy to Azure Web App id: deploy-to-webapp