Skip to content

Rework Bingus frontend #29

Rework Bingus frontend

Rework Bingus frontend #29

Workflow file for this run

name: Publish frontend
on:
push:
branches:
- main
paths:
- .github/workflows/frontend.yml
- bingus-frontend/**
- package*.json
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true
env:
# Don't mark warnings as errors
CI: false
jobs:
publish:
if: ${{ github.repository == 'SlimeVR/Bingus-Search' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build frontend
shell: bash
run: |
cd bingus-frontend
npm i
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: bingus-frontend/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4