Skip to content

Revise project presentation and add visual management board #54

Revise project presentation and add visual management board

Revise project presentation and add visual management board #54

name: Deploy Frontend to GitHub Pages
on:
push:
branches:
- main
- dev
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 25
- name: Install pnpm
run: npm install -g pnpm@10.28.2
- name: Debug Versions
run: |
node -v
pnpm -v
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: src
- name: Build
run: pnpm --filter front build
working-directory: src
env:
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Fix 404 for SPA
run: cp src/apps/front/out/index.html src/apps/front/out/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: src/apps/front/out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4