Skip to content

Commit ade2b5a

Browse files
committed
fix action-gh-pages version typo
1 parent 2a63725 commit ade2b5a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
build-and-deploy:
1014
runs-on: ubuntu-latest
@@ -16,22 +20,18 @@ jobs:
1620
- uses: dtolnay/rust-toolchain@stable
1721
with:
1822
targets: wasm32-unknown-unknown
19-
- name: install wasm-bindgen-cli
20-
run: |
21-
cargo install wasm-bindgen-cli
2223

2324
- name: Install wasm-pack
2425
run: |
25-
curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh
26+
curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | bash
27+
# cargo install wasm-pack
2628
2729
- name: Build WASM
2830
run: wasm-pack build --target web
2931

3032
- name: Deploy to gh-pages
31-
uses: peaceiris/actions-gh-pages@v6
33+
uses: peaceiris/actions-gh-pages@v4
3234
with:
3335
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_branch: gh-pages
3536
publish_dir: ./pkg
3637
keep_files: false
37-
force_orphan: true

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ wasm-bindgen = "0.2"
2222
webgpu = ["bevy/webgpu"]
2323
webgl2 = ["bevy/webgl2"]
2424

25-
# [lib]
26-
# # need both, cdylib for wasm, rlib for main.rs
27-
# crate-type = ["cdylib", "rlib"]
25+
[lib]
26+
# need both, cdylib for wasm, rlib for main.rs
27+
crate-type = ["cdylib", "rlib"]
2828

2929
# optimize for smaller WASM binary size
3030
[profile.release]

0 commit comments

Comments
 (0)