myjian / mai-tools

mai-tools is a collection of useful tools for maimai and maimai DX.
https://myjian.github.io/mai-tools
GNU General Public License v3.0
39 stars 11 forks source link

Refactor: Deploy github pages with actions #60

Closed Luxusio closed 1 year ago

Luxusio commented 1 year ago

Current developing environment is not comfortable. Source code contains its build result. Which causes conflict. It is hard to contribute many people at once. I think it should be improved quickly.

So I decided to contribute Deploy github pages with actions. I made a sample project about deploying github pages via github actions.

This is my following plan.

  1. Use CSS Bundler to bundle css
  2. Use copy plugin to copy html & data
  3. Set build output directory to 'build' and remove all unnecessary folders
  4. Build&Deploy github page via Github Actions

Repository's owner should change github page deploy option to 'action' to achive this goal. Can you help me, @myjian?

Luxusio commented 1 year ago

I'm currently working on my forked repository

Luxusio commented 1 year ago

I successfully deployed artifact via github actions, but analyze rating is not working yet

https://luxusio.github.io/mai-tools/

myjian commented 1 year ago

Try adding https://luxusio.github.io/ to ALLOWED_ORIGINS in src/common/util.ts. This should make analyze rating work.

myjian commented 1 year ago

Thank you for working on this.

I would prefer having all files that are copied by CopyPlugin in the static folder, which would make the folder structure and webpack configuration look like this: image