Skip to content

Commit a1e0609

Browse files
feat: Add GitHub Actions workflows for frontend and backend deployment.
1 parent 68b4c1e commit a1e0609

2 files changed

Lines changed: 36 additions & 37 deletions

File tree

.github/workflows/backend-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# name: Build NestJS API
2-
32
# on:
43
# push:
54
# branches:
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
name: Build and Deploy to GitHub Pages
1+
# name: Build and Deploy to GitHub Pages
22

3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
reason:
7-
description: "Reason for deployment"
8-
required: true
9-
push:
10-
branches:
11-
- main
12-
paths:
13-
- "frontend/**"
3+
# on:
4+
# workflow_dispatch:
5+
# inputs:
6+
# reason:
7+
# description: "Reason for deployment"
8+
# required: true
9+
# push:
10+
# branches:
11+
# - main
12+
# paths:
13+
# - "frontend/**"
1414

15-
permissions:
16-
contents: write
15+
# permissions:
16+
# contents: write
1717

18-
jobs:
19-
deploy:
20-
runs-on: ubuntu-latest
21-
timeout-minutes: 10
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4.2.2
18+
# jobs:
19+
# deploy:
20+
# runs-on: ubuntu-latest
21+
# timeout-minutes: 10
22+
# steps:
23+
# - name: Checkout
24+
# uses: actions/checkout@v4.2.2
2525

26-
- name: Setup Node.js
27-
uses: actions/setup-node@v4.1.0
28-
with:
29-
node-version: "20"
30-
cache: "npm"
26+
# - name: Setup Node.js
27+
# uses: actions/setup-node@v4.1.0
28+
# with:
29+
# node-version: "20"
30+
# cache: "npm"
3131

32-
- name: Install Dependencies
33-
run: cd frontend && npm i --legacy-peer-deps
32+
# - name: Install Dependencies
33+
# run: cd frontend && npm i --legacy-peer-deps
3434

35-
- name: Build Mavluda Beauty Frontend
36-
run: cd frontend && npm run build --prod --base-href=/mavluda-beauty/
35+
# - name: Build Mavluda Beauty Frontend
36+
# run: cd frontend && npm run build --prod --base-href=/mavluda-beauty/
3737

38-
- name: Deploy to GitHub Pages
39-
uses: peaceiris/actions-gh-pages@v4.0.0
40-
with:
41-
github_token: ${{ secrets.GITHUB_TOKEN }}
42-
publish_dir: ./frontend/dist/
43-
publish_branch: gh-pages
38+
# - name: Deploy to GitHub Pages
39+
# uses: peaceiris/actions-gh-pages@v4.0.0
40+
# with:
41+
# github_token: ${{ secrets.GITHUB_TOKEN }}
42+
# publish_dir: ./frontend/dist/
43+
# publish_branch: gh-pages

0 commit comments

Comments
 (0)