Skip to content

ci(deploy.yml): Change the next_public_base_path #9

ci(deploy.yml): Change the next_public_base_path

ci(deploy.yml): Change the next_public_base_path #9

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
quality:
uses: ./.github/workflows/code-quality.yml
deploy:
needs: quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Dependencies
working-directory: frontend
run: pnpm install
- name: Build
working-directory: frontend
env:
NODE_ENV: production
NEXT_PUBLIC_BASE_PATH: /
run: pnpm build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: frontend/out
branch: gh-pages