Skip to content

GitHub Pages serves the unbuilt source, so the site has no styles or scripts #19

Description

@benfoley

https://language-research-technology.github.io/collection2crate/ loads the development index.html. Its /src/style.css and /src/main.js return 404.

Cause. Pages is set to deploy from a branch (main, /), so it publishes the repo's files as committed. The dev index.html isn't meant to be served that way:

  • its links start at the domain root
  • main.js imports npm packages and the sibling collection2crate-plugins checkout
  • dist/ isn't committed, and nothing builds it

Wanted. An Actions workflow that, on every push to main (or when run by hand):

  1. checks out this repo and collection2crate-plugins side by side
  2. runs npm ci, the tests and vite build
  3. deploys dist/ to Pages

Pages' source should then be switched to GitHub Actions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions