File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88
99jobs :
10- build_and_deploy_gh_pages :
10+ build :
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -22,15 +22,22 @@ jobs:
2222 run : cargo clippy
2323 - name : Format
2424 run : cargo fmt --all -- --check
25- # Web
26- - name : Install trunk
27- uses : jetli/trunk-action@1346cc09eace4beb84e403e199a471346d4684c9 # v0.5.1
25+
26+ web-demo :
27+ needs : build
28+ permissions :
29+ contents : write
30+ runs-on : ubuntu-latest
31+ steps :
32+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+ - uses : actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 # v1.13.0
34+ - uses : jetli/trunk-action@1346cc09eace4beb84e403e199a471346d4684c9 # v0.5.1
2835 with :
2936 version : " v0.21.14"
3037 - name : Trunk build
3138 working-directory : demo
3239 run : trunk build --locked --release --public-url /egui_json_tree
33- - name : Deploy demo to GH Pages
40+ - name : Maybe deploy web demo
3441 if : github.ref == 'refs/heads/main'
3542 uses : crazy-max/ghaction-github-pages@df5cc2bfa78282ded844b354faee141f06b41865 # v4.2.0
3643 with :
You can’t perform that action at this time.
0 commit comments