space-game/.github/workflows/build.yml
Michael Mainguy 81af267a29
All checks were successful
Build / build (push) Successful in 5m5s
updated workflow to deploy to nginx when build succeeds.
2025-10-16 09:46:09 -05:00

29 lines
490 B
YAML

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: linux_amd64
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Run build
run: npm run build
env:
NODE_OPTIONS: "--max-old-space-size=2048"
- name: Deploy to nginx
run: |
rm -rf /var/www/localhost/space/*
cp -r dist/* /var/www/localhost/space/