Skip to content

feat: implement backend authentication and containerize frontend and … #14

feat: implement backend authentication and containerize frontend and …

feat: implement backend authentication and containerize frontend and … #14

name: Build Frontend Angular
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "frontend/**"
workflow_call:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Clone Project
uses: actions/checkout@v4 # Используем мажорную версию v4 для стабильности
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "frontend/package-lock.json"
- name: Install Dependencies
run: |
cd frontend
npm ci --legacy-peer-deps
- name: Build Frontend Angular
run: |
cd frontend
npm run build --prod
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: frontend/dist
branch: gh-frontend
token: ${{ secrets.GITHUB_TOKEN }}
clean: true