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 907a742
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
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,20 @@ jobs:
needs: build
steps:
- uses: actions/download-artifact@v4
- name: Show artifact
run: |
ls -l .
ls -l ./dist
- name: Unpack artifact
run: |
tar -xvf ./dist/*.tar.gz -C ./artifact
- name: Show unpacked 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 907a742

Please sign in to comment.