Skip to content

Commit 839765c

Browse files
committed
Update deploy.yml
1 parent ed2fedd commit 839765c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- '.github/workflows/pages.yml'
8+
- '.github/workflows/deploy.yml'
99
- 'src/**.rs'
1010
- 'build.rs'
1111
- 'input.css'
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build
4040
run: |
4141
cargo install --locked cargo-leptos
42-
cargo leptos serve -r
42+
RUSTFLAGS="--cfg erase_components" cargo leptos serve -r
4343
- name: Upload artifact
4444
uses: actions/upload-artifact@v4
4545
with:
@@ -50,9 +50,13 @@ jobs:
5050
needs: build
5151
steps:
5252
- uses: actions/download-artifact@v4
53+
- name: Show artifact
54+
run: |
55+
ls -l .
56+
ls -l ./artifact
5357
- name: Deploy
5458
uses: cloudflare/wrangler-action@v3
5559
with:
5660
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
5761
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
58-
command: pages deploy ./artifact --project-name=homepage
62+
# command: pages deploy ./artifact --project-name=peru

0 commit comments

Comments
 (0)