Skip to content

Commit

Permalink
new deploy file
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadeperfect committed Aug 27, 2024
1 parent 6a0242b commit bcb285f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,19 @@ jobs:
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/bevy_wireframe.wasm
- name: Prepare deployment
run: |
# Create index.html in the out directory
echo '<html><head><script type="module">
import init from "./bevy_wireframe.js";
init();
</script></head><body></body></html>' > out/index.html
# Copy any other necessary files (like assets) to the out directory
cp -r assets out/
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .
folder: out # Deploy only the out folder

0 comments on commit bcb285f

Please sign in to comment.