Skip to content

Commit

Permalink
release to create public web files
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed May 5, 2021
1 parent 76ac952 commit d076c2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,15 @@ jobs:
file_glob: true
tag: ${{ github.ref }}
overwrite: true
- name: Web
run: zip -r public.zip ol/cli/web-monitor
- name: Upload Web Files
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: public.zip
file_glob: true
tag: ${{ github.ref }}
overwrite: true


6 changes: 3 additions & 3 deletions ol/cli/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ pub async fn start_server(node: Node) {


let node_home = cfg.clone().workspace.node_home.clone();
let web_files = if !*IS_PROD {
let web_files = if *IS_PROD {
node_home.join("web-monitor/public/")
// for using `npm run dev`
PathBuf::from("/root/libra/ol/cli/web-monitor/public/")
} else {
node_home.join("web-monitor/public/")
PathBuf::from("/root/libra/ol/cli/web-monitor/public/")
};

//GET /
Expand Down

0 comments on commit d076c2e

Please sign in to comment.