diff --git a/.github/workflows/main_dynamicscharity.yml b/.github/workflows/main_dynamicscharity.yml index 0d2d9b5a..7742422e 100644 --- a/.github/workflows/main_dynamicscharity.yml +++ b/.github/workflows/main_dynamicscharity.yml @@ -20,7 +20,13 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x' - + + - name: npm install + run: npm install + + - name: Restore + run: dotnet restore + - name: Build with dotnet run: dotnet build --configuration Release @@ -39,21 +45,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_0641D73E80A24EBD824D59C2A565AFDF }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_DFA1B0B53E764082912749567D9A5069 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_69E5B26872F84137827C4DCA4CB9EC5D }} + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_0641D73E80A24EBD824D59C2A565AFDF }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_DFA1B0B53E764082912749567D9A5069 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_69E5B26872F84137827C4DCA4CB9EC5D }} - name: Deploy to Azure Web App id: deploy-to-webapp @@ -62,4 +68,4 @@ jobs: app-name: 'dynamicscharity' slot-name: 'Production' package: . - \ No newline at end of file +