Skip to content

Commit b7f270b

Browse files
Update to protoviz 0.6.0
Add option to save as png Add text auto wrap Update all dependencies
1 parent 69b20b0 commit b7f270b

File tree

8 files changed

+2349
-1041
lines changed

8 files changed

+2349
-1041
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,37 @@ on:
44
push:
55
branches:
66
- main
7+
permissions:
8+
contents: write
79

810
jobs:
9-
build-deploy:
11+
build-and-deploy:
1012
runs-on: ubuntu-latest
1113
steps:
12-
- name: "Dioxus Deploy"
13-
uses: DioxusLabs/deploy-action@4f933485ec8f37a9dc1beec181f4eba58789523e
14+
- name: Checkout 🛎️
15+
uses: actions/checkout@v5
16+
17+
- name: Rust Setup 🦀
18+
uses: actions-rs/[email protected]
19+
with:
20+
toolchain: stable
21+
profile: minimal
22+
target: wasm32-unknown-unknown
23+
override: true
24+
25+
- name: Cache Dependencies 📦
26+
uses: Swatinem/rust-cache@v2
27+
28+
- name: Install Dependencies 📦
29+
shell: bash
30+
run: cargo install dioxus-cli
31+
32+
- name: Build 🔧
33+
shell: bash
34+
run: dx bundle --release && cp ./docs/public/index.html ./docs/public/404.html
35+
36+
- name: Deploy 🚀
37+
uses: JamesIves/github-pages-deploy-action@v4
38+
with:
39+
branch: gh-pages
40+
folder: docs/public # The folder the action should deploy.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Generated by Cargo
22
# will have compiled files and executables
33
/target/
4-
/dist/
4+
/docs/
55
/static/
66
/.dioxus/
77

0 commit comments

Comments
 (0)