.github/workflows/deploy.yml in shipwide_app.
It runs the same npm run build you run locally — Prettier and ESLint checks, type-check, unit
tests, then the build — so nothing reaches production that wouldn’t pass on your machine.
What runs when
All jobs use Node 24. Manual runs start from the repository’s Actions tab → Build & Deploy
→ Run workflow.
Secrets and variables
Set these under the repository’s Settings → Secrets and variables → Actions.VITE_* values
are inlined into the build, so only public values belong in them — see
Configuration.
Deploying the web build
After a successful build, the web job copiesdist/ to your server over SSH — DEPLOY_HOST and
DEPLOY_USER with the private key in DEPLOY_KEY, into DEPLOY_PATH. Serve that folder as a
static site; its origin must be in the API’s CORS_ORIGINS (Deployment).
If you host the web app elsewhere (a CDN, Cloudflare Pages, Netlify…), replace the deploy step
with your host’s own action — the build before it stays the same.
Mobile and desktop builds
- Android — the job produces a release APK. Add your signing configuration to
android/app/build.gradle(with the keystore as a secret) before you distribute it, and switch tobundleReleaseif you upload to Google Play. - Desktop — the Tauri job builds on all three operating systems at once and keeps each platform’s installers as an artifact.
- iOS — archive and submit from Xcode (see Deployment); add a macOS job with your signing certificates if you want it in CI.