From e2ac22c34eec6bb8a87842af65680f24b84527f4 Mon Sep 17 00:00:00 2001 From: arcadeperfect Date: Mon, 26 Aug 2024 23:25:14 -0400 Subject: [PATCH] one more time --- .github/workflows/deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 430ddf6..5541fda 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,9 +25,14 @@ 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 Directory + run: | + mkdir -p public/out + cp -r ./out/* public/out/ + - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@4.1.5 with: branch: gh-pages - folder: ./out # Deploy only the contents of the out directory - clean: true # Clean previous contents before deploying + folder: public # Deploy the public directory which contains the out subdirectory and other root files + clean: false # Don't remove existing files, as we want to keep other files in the root directory