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 118bdc4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 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 All @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -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 @@ -49,10 +49,15 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- 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 118bdc4

Please sign in to comment.