Skip to content

trying to fix build process #10

trying to fix build process

trying to fix build process #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
env:
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
VITE_BASE_URL: '/inference-app/'
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
with:
folder: build
branch: gh-pages
clean: true
path: ./build