Skip to content

Commit

Permalink
Update azure-webapps-node.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricioveronez committed May 8, 2023
1 parent 1689d8c commit 2fc1b10
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/azure-webapps-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

cache-dependency-path: ./src/package-lock.json

- name: npm install, build, and test
run: |
cd ./src
Expand All @@ -55,25 +56,3 @@ jobs:
name: node-app
path: .

deploy:
permissions:
contents: none
runs-on: ubuntu-latest
needs: build
environment:
name: 'Development'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: node-app

- name: 'Deploy to Azure WebApp'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}

0 comments on commit 2fc1b10

Please sign in to comment.