Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup GitHub Pages #1

Open
t-mat opened this issue Nov 16, 2024 · 1 comment
Open

Setup GitHub Pages #1

t-mat opened this issue Nov 16, 2024 · 1 comment

Comments

@t-mat
Copy link
Owner

t-mat commented Nov 16, 2024

There're some incompatibility with GitHub Pages.

@t-mat
Copy link
Owner Author

t-mat commented Nov 16, 2024

  • Create a new branch gh-pages
  • Confiugre domain and location
    • Edit /index.html
      • Change src="/src/main.tsx" to src="src/main.tsx" since we may not put it to the root level of the GH-Pages site.
    • Edit /vite.config.ts
      • Append base: '/chebyshev-calculator/', to the argument of defineConfig()
  • Create /package-lock.json with npm
    • Remove package-lock.json and node_modules/
    • Invoke npm i (note that npm ci doesn't work properly)
    • Invoke npm audit to check vulnerabilities.
    • Invoke npm audit fix to fix vulnerabilities.
    • Commit /package-lock.json
      • We don't need to commit /yarn.lock.
  • Create /.github/workflows/gh-pages.yml
  • Push the changes to gh-pages
    • GitHub Actions automatically run to deploy it.
  • Open https://t-mat.github.io/chebyshev-calculator/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant