From bcb285ff849f50ec76cfc630ccae19f3274357fc Mon Sep 17 00:00:00 2001 From: arcadeperfect Date: Mon, 26 Aug 2024 22:46:08 -0400 Subject: [PATCH] new deploy file --- .github/workflows/deploy.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c140709..64b0e55 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 '' > 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/github-pages-deploy-action@4.1.5 with: branch: gh-pages - folder: . + folder: out # Deploy only the out folder \ No newline at end of file