From 839765cc44e465bb785d9d8798d57e62a0d2e82d Mon Sep 17 00:00:00 2001 From: Phosphorus Moscu Date: Sat, 11 Jan 2025 13:37:57 -0300 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index feadde2..e526dd1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - '.github/workflows/pages.yml' + - '.github/workflows/deploy.yml' - 'src/**.rs' - 'build.rs' - 'input.css' @@ -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: @@ -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 \ No newline at end of file + # command: pages deploy ./artifact --project-name=peru