Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Phosphorus-M committed Jan 11, 2025
1 parent ed2fedd commit 839765c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- '.github/workflows/pages.yml'
- '.github/workflows/deploy.yml'
- 'src/**.rs'
- 'build.rs'
- 'input.css'
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Build
run: |
cargo install --locked cargo-leptos
cargo leptos serve -r
RUSTFLAGS="--cfg erase_components" cargo leptos serve -r
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -50,9 +50,13 @@ jobs:
needs: build
steps:
- uses: actions/download-artifact@v4
- name: Show artifact
run: |
ls -l .
ls -l ./artifact
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./artifact --project-name=homepage
# command: pages deploy ./artifact --project-name=peru

0 comments on commit 839765c

Please sign in to comment.