Adding new deploy file

Fixing node sass version
This commit is contained in:
DESKTOP-FD57EEK\Joshua Matamorros 2025-07-02 21:37:36 -06:00
parent dc6a442704
commit 859d7436a2
5 changed files with 28136 additions and 1109 deletions

43
.github/workflows/ci-cd.yml vendored Normal file
View file

@ -0,0 +1,43 @@
name: Deploy Angular to EC2
on:
push:
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@v3
with:
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Build Angular App
run: npm run build -- --configuration=production
- name: Copy files to EC2 via SCP
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
source: "dist/**" # or dist/your-app-name/**
target: "/var/www/angular-app"
- name: Trigger Accessibility Framework
if: ${{ success() }} # or failure(), or always()
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.REPO_ALLY_PAT }}
repository: punkam23/accessibility-testing-framework
event-type: build_completed
client-payload: '{"commit_sha": "${{ github.sha }}"}'