Skip to content

Fixing frontend deployment #3

Fixing frontend deployment

Fixing frontend deployment #3

name: Build frontend
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: |
cd frontend
npm ci
- run: |
cd frontend
npm run build
- name: Move dist files to public
run: |
rm public/* -rf
mv frontend/dist/* public
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}