Skip to content

Commit d9deede

Browse files
authored
Update GitHub Actions workflow for deployment
add missing path to frontend folder
1 parent 60a51a3 commit d9deede

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Dioxus app to GitHub Pages
22

33
on:
44
push:
5-
branches: [ deploy ] # or your default branch
5+
branches: [ main ] # or your default branch
66
workflow_dispatch:
77

88
permissions:
@@ -24,14 +24,16 @@ jobs:
2424
- name: Install Dioxus CLI
2525
run: cargo install dioxus-cli --locked
2626

27-
- name: Build Dioxus Web App
27+
- name: Build Dioxus Web App (in frontend/)
28+
working-directory: frontend
2829
run: dx build --release
2930

30-
- name: Upload artifact
31+
- name: Upload GitHub Pages artifact
3132
uses: actions/upload-pages-artifact@v3
3233
with:
33-
path: target/dioxus/release/web
34-
34+
# IMPORTANT: path from repo root:
35+
path: frontend/target/dioxus/release/web
36+
3537
deploy:
3638
runs-on: ubuntu-latest
3739
needs: build

0 commit comments

Comments
 (0)