Skip to content

Commit

Permalink
Add build-ci task and update GitHub Actions workflow for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkFi committed Oct 13, 2024
1 parent fc731f1 commit a7bdf01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

# 5. 构建项目
- name: Build project
run: cargo make build
run: cargo make build-ci

# 6. 部署到 gh-pages 分支
- name: Deploy to GitHub Pages
Expand Down
13 changes: 13 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ args = [
]
watch = { ignore_pattern = "static/*" }

[tasks.build-ci]
command = "wasm-pack"
args = [
"build",
"--dev",
"--target",
"web",
"--out-name",
"wasm",
"--out-dir",
"./static",
]

[tasks.serve]
command = "simple-http-server"
args = [
Expand Down

0 comments on commit a7bdf01

Please sign in to comment.