Skip to content

Commit 7a9abc5

Browse files
mxgordonclaude
andcommitted
Fix asset loading by deploying from Dioxus build output
The previous workflow was using 'mv dist/public/* dist' which didn't properly preserve the directory structure, causing assets to fail loading. Now deploying directly from target/dx/.../release/web/public which: - Preserves the correct assets/ and wasm/ directory structure - Eliminates file moving operations that could fail - Uses Dioxus's standard build output location 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 213290d commit 7a9abc5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/gh-pages-deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,19 @@ jobs:
4545

4646
- name: Build with Dioxus CLI
4747
run: |
48-
dx bundle --release --out-dir dist
49-
mv dist/public/* dist
50-
cp dist/index.html dist/404.html
48+
dx bundle --release
49+
cp target/dx/mxgordon-github-io/release/web/public/index.html target/dx/mxgordon-github-io/release/web/public/404.html
5150
5251
- name: Copy CNAME for custom domain
53-
run: cp CNAME dist/
52+
run: cp CNAME target/dx/mxgordon-github-io/release/web/public/
5453

5554
- name: Setup Pages
5655
uses: actions/configure-pages@v5
5756

5857
- name: Upload artifact
5958
uses: actions/upload-pages-artifact@v3
6059
with:
61-
path: './dist'
60+
path: './target/dx/mxgordon-github-io/release/web/public'
6261

6362
- name: Deploy to GitHub Pages 🚀
6463
id: deployment

0 commit comments

Comments
 (0)