Skip to content

Build frontend

Build frontend #70

name: Build frontend
on:
push:
branches:
- '*'
schedule:
- cron: '39 12 * * 6'
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install and Build
run: |
npm install
npm run build-github-pages
env:
APP_BASE_URL: /Phomemo-M02-Web/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist