From 907a742594e488eb111908acc65b291a0a0dd823 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 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index feadde2..a379806 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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,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 \ No newline at end of file + # command: pages deploy ./artifact --project-name=peru