-
-
Notifications
You must be signed in to change notification settings - Fork 615
Home
Timothy Edmund Crosley edited this page Mar 8, 2014
·
6 revisions
Welcome to the isort wiki!
name: Build and Deploy to Azure Web App
on: push: branches: - main # or 'master' if you're old-school workflow_dispatch:
jobs: build-and-deploy: runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build project (optional)
run: npm run build
# Remove or change this if you don’t have a build script
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: your-app-name
slot-name: Production
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: .package-lock.jsonnpm installNode.jsgit add package-lock.json
git commit -m "Add lockfile for GitHub Actions cache" git push