From 46bd5f4ec879e8430aeb4b7c5d9e4cc38c575d46 Mon Sep 17 00:00:00 2001 From: Erin McLaughlin Date: Sat, 18 May 2024 09:56:43 -0400 Subject: [PATCH] use node.js in pipeline --- .github/workflows/main_headlessblazor.yml | 25 +++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main_headlessblazor.yml b/.github/workflows/main_headlessblazor.yml index c590693..5f98213 100644 --- a/.github/workflows/main_headlessblazor.yml +++ b/.github/workflows/main_headlessblazor.yml @@ -1,7 +1,7 @@ # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy # More GitHub Actions for Azure: https://github.com/Azure/actions -name: Build and deploy ASP.Net Core app to Azure Web App - headlessblazor +name: Build and Deploy on: push: @@ -22,6 +22,9 @@ jobs: dotnet-version: '8.x' include-prerelease: true + - name: Set up Node.js + uses: actions/setup-node@v4.0.2 + - name: Build with dotnet run: dotnet build --configuration Release @@ -40,21 +43,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@v3 with: name: .net-app - - - name: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_6EBCF58C2C2E4F7DAE3835924574EAE1 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C2F0D35E84FC4DEF9FB9D9A402F97D52 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_07A7207A5D2E457CA4971FEF7169B43F }} + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_6EBCF58C2C2E4F7DAE3835924574EAE1 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C2F0D35E84FC4DEF9FB9D9A402F97D52 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_07A7207A5D2E457CA4971FEF7169B43F }} - name: Deploy to Azure Web App id: deploy-to-webapp @@ -63,4 +66,4 @@ jobs: app-name: 'headlessblazor' slot-name: 'Production' package: . - \ No newline at end of file +