Skip to content

Commit

Permalink
Create main.yml for azure deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaster17 authored Sep 2, 2024
1 parent 0d9e12e commit d377944
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI/CD Pipeline for Azure Deployment

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Change directory to express_backend
run: cd express_backend

- name: Install dependencies
run: npm install
working-directory: express_backend

- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: Pathfiller-web-app
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: express_backend

0 comments on commit d377944

Please sign in to comment.