Skip to content

Commit

Permalink
added pipline
Browse files Browse the repository at this point in the history
  • Loading branch information
PuneethHC committed Oct 7, 2023
1 parent 08ca3c4 commit 61d1fb9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Pipeline

on:
push:
branches:
- main # Adjust the branch name as needed

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies and build
run: |
npm install
npm run build
- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: build
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Pipeline

on:
workflow_run:
workflows: ["Build Pipeline"]
types:
- completed

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts

- name: Deploy to Azure App Service
uses: azure/webapps-deploy@v2
with:
app-name: test-app # Replace with your Azure App Service name
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}

0 comments on commit 61d1fb9

Please sign in to comment.