Files
miracles_in_motion/.github/workflows/deploy.yml
T
defiQUGandCursor 86646c6f3c Archive Azure docs, drop GH Pages CNAME deploy, and tighten repo hygiene.
Move legacy deployment guides to docs/archive/azure-deprecated/, replace auto GitHub Pages with artifact upload plus optional pages-preview workflow, update architecture diagram and doc index, and ignore Lighthouse temp artifacts.

Co-authored-by: Cursor <[email protected]>
2026-06-15 20:32:33 -07:00

50 lines
1.3 KiB
YAML

name: Build and Deploy
# Validates on PR and main; uploads build artifact on main.
# Production traffic: Proxmox VMID 7810 (see docs/deployment/PROXMOX_DEPLOYMENT.md).
# GitHub Pages is NOT canonical for mim4u.org — do not set CNAME to mim4u.org here.
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
uses: ./.github/workflows/validate.yml
artifact:
name: Upload build artifact
needs: validate
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- name: Install ImageMagick (brand asset prebuild)
run: sudo apt-get update && sudo apt-get install -y imagemagick
- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build
env:
VITE_APP_VERSION: ${{ github.sha }}
- name: Upload dist artifact
uses: actions/upload-artifact@v4
with:
name: dist-main-${{ github.sha }}
path: dist/
if-no-files-found: error
retention-days: 14