Skip to content

Add production configuration for Express server; update package.json … #1

Add production configuration for Express server; update package.json …

Add production configuration for Express server; update package.json … #1

name: Deploy to Azure Web App
on:
push:
branches: [ signup-with-google ]
env:
AZURE_WEBAPP_NAME: subtracker # Replace with your app name
NODE_VERSION: '18.x'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Dependencies
run: |
npm install
- name: Build Frontend
run: npm run build
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: .