aimpress-chatbot/.github/workflows/deploy.yml
2025-04-27 18:04:34 +01:00

28 lines
621 B
YAML

name: Build and deploy Node.js app to Azure Web App - ChatBot2222
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm install
- run: npm run build --if-present
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'ChatBot2222'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_CHATBOT2222 }}
package: .