-
-
Notifications
You must be signed in to change notification settings - Fork 602
Home
Adelhard Schulze edited this page Apr 12, 2022
·
6 revisions
Welcome to the isort wiki! All isort related documentation that goes beyond the basic documentation provided on the home page will be stored or linked to from here. Feel free to update any of these pages with more up-to-date information or additional documentation.
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