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

feat: add CI for deg-online #2

Open
Triple-Z opened this issue Dec 24, 2022 · 1 comment
Open

feat: add CI for deg-online #2

Triple-Z opened this issue Dec 24, 2022 · 1 comment

Comments

@Triple-Z
Copy link
Member

Triple-Z commented Dec 24, 2022

This repo is for hosting static files by GitHub Pages for now.

Currently, the web code files are in double-entry-generator/wasm, because the web page needs the wasm binary, which would be made by double-entry-generator project.

FYI, I have used the following several operations to create a deg-online GH Pages release:

$ cd ~/Code/double-entry-generator
$ make build-wasm
# wasm release files are created at `wasm-dist` directories, like wasm binary, html, wasm_exec.js in Go etc.

$ mv wasm-dist/* ~/Code/deg-online/
$ cd ~/Code/deg-online
$ git add .; git commit -s; git push

Indeed this is a bad way to deploy new web releases. I suggest the following workflow for the future:

  1. Build and push WASM binary, wasm_exec.js from Go build environment (in GitHub Action, maybe) to deg-online's main branch when a release is created in double-entry-generator.
  2. Build the web application (on every pushes to the main branch) in deg-online and push the web artifacts (dist directory for Vue) to deg-online's gh-pages branch, which the GitHub Action uses.

/cc @gaocegege

Originally posted by @Triple-Z in #1 (comment)

@Triple-Z
Copy link
Member Author

Triple-Z commented Jan 9, 2023

The current version has deployed on https://deg-online.pages.dev/ via CloudFlare Pages.

@gaocegege @VoVAllen

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