-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.02 KB
/
frontend-deployment.yml
File metadata and controls
43 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# name: Build and Deploy to GitHub Pages
# on:
# workflow_dispatch:
# inputs:
# reason:
# description: "Reason for deployment"
# required: true
# push:
# branches:
# - main
# paths:
# - "frontend/**"
# permissions:
# contents: write
# jobs:
# deploy:
# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - name: Checkout
# uses: actions/checkout@v4.2.2
# - name: Setup Node.js
# uses: actions/setup-node@v4.1.0
# with:
# node-version: "22"
# cache: "npm"
# - name: Install Dependencies
# run: cd frontend && npm i --legacy-peer-deps
# - name: Build Mavluda Beauty Frontend
# run: cd frontend && npm run build --prod --base-href=/mavluda-beauty/
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v4.0.0
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./frontend/dist/
# publish_branch: gh-pages