Skip to content

Commit

Permalink
add npm and restore
Browse files Browse the repository at this point in the history
  • Loading branch information
kleqing authored Oct 18, 2024
1 parent cfcc8d7 commit 93bb738
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/main_dynamicscharity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -62,4 +68,4 @@ jobs:
app-name: 'dynamicscharity'
slot-name: 'Production'
package: .


0 comments on commit 93bb738

Please sign in to comment.