-
Personal website which was originally written in Vue 2 and then migrated to Vue 3.
yarn install
yarn dev # starts quasar dev server
yarn build # produces dist/spa for deploymentThe project targets Node 20+ (see package.json -> engines).
- Quasar is configured to build in hash mode with a default
publicPathof/liamsarsfielddev/, which matches the GitHub Pages project URL. - If you host the bundle somewhere else, override the base path via
PUBLIC_PATH=/your/base/ yarn build. - Static assets referenced in
src/layouts/MainLayout.vuederive fromimport.meta.env.BASE_URL, ensuring they respect whatever base path is in use.
The workflow in .github/workflows/deploy.yml:
- Runs on pushes to
dev-new-quasar(and is alsoworkflow_dispatch-able). - Installs dependencies with Yarn (Node 20).
- Executes
yarn buildto generatedist/spa. - Uploads the SPA artifact and deploys it via
actions/deploy-pages@v4.
Ensure the repository’s Pages settings are configured to use “GitHub Actions” as the source, and that Actions has permission to write to Pages (already granted via workflow permissions).