Commit b50b722 1 parent 1d50335 commit b50b722 Copy full SHA for b50b722
File tree 1 file changed +8
-24
lines changed
1 file changed +8
-24
lines changed Original file line number Diff line number Diff line change 8
8
branches :
9
9
- main
10
10
workflow_dispatch :
11
- # workflow_run:
12
- # workflows: [Continuous integration]
13
- # types: [completed]
14
- # branches: [main]
15
11
16
12
jobs :
17
13
release :
18
14
runs-on : ubuntu-latest
19
15
steps :
20
- # Checkout the repository
21
16
- uses : actions/checkout@v2
22
17
23
- # Install the stable toolchain for Rust and target WASM
24
- - uses : actions-rs/toolchain@v1
18
+ - name : Install Rust toolchain
19
+ uses : actions-rs/toolchain@v1
25
20
with :
26
21
toolchain : stable
27
22
target : wasm32-unknown-unknown
28
23
29
- # Cache Rust build artifacts
30
24
- name : Rust Cache
31
25
uses : Swatinem/rust-cache@v1
32
-
33
- # Build the WASM with trunk
26
+
27
+ - name : Install Trunk
28
+ uses : jetli/trunk-action@v0.1.0
29
+
34
30
- name : Build with Trunk
35
- - uses : jetli/trunk-action@v0.1.0
36
- with :
37
- public_url : " https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}"
38
- -name : kill
39
- - run : trunk build --release --public-url $public_url
40
- env :
41
- public_url : " https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}"
42
-
43
- # Use wasm-bindgen to prepare the bindings
44
- - name : Use wasm-bindgen
45
- uses : jetli/wasm-bindgen-action@v0.1.0
31
+ run : |
32
+ trunk build --release --public-url "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}"
46
33
47
- # Deploy to GitHub Pages
48
34
- name : Deploy
49
35
uses : JamesIves/github-pages-deploy-action@v4
50
36
with :
51
37
folder : dist
52
- # This option will not maintain any history of your previous pages deployment
53
- # Set to false if you want all page builds to be committed to your gh-pages branch history
54
38
single-commit : true
You can’t perform that action at this time.
0 commit comments