From 67feb99f62f18594d8f5ed6a3d5c901c7d499c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ai=E5=90=9B?= Date: Wed, 11 Sep 2024 13:18:57 +0000 Subject: [PATCH] deploy-1 --- .github/workflows/main.yml | 13 +++++++++---- wrangler.toml.template | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fea1aff..366aa84 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,9 +22,9 @@ jobs: - name: Generate wrangler.toml run: | - sed -e 's/$USERNAME/${{ secrets.USERNAME || 'default_username' }}/g' \ - -e 's/$PASSWORD/${{ secrets.PASSWORD || 'default_g' \ - -e 's/$BUCKET_NAME/${{ secrets.BUCKET_NAME || 'default_bucket_name' }}/g' \ + sed -e 's/$USERNAME/${{ secrets.USERNAME || '"'"'default_username'"'"' }}/g' \ + -e 's/$PASSWORD/${{ secrets.PASSWORD || '"'"'default_password'"'"' }}/g' \ + -e 's/$BUCKET_NAME/${{ secrets.BUCKET_NAME || '"'"'default_bucket_name'"'"' }}/g' \ wrangler.toml.template > wrangler.toml cat wrangler.toml @@ -32,4 +32,9 @@ jobs: uses: cloudflare/wrangler-action@3.0.0 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - \ No newline at end of file + + - name: Debug Info + run: | + echo "Node version: $(node -v)" + echo "NPM version: $(npm -v)" + echo "Wrangler version: $(npx wrangler --version)" \ No newline at end of file diff --git a/wrangler.toml.template b/wrangler.toml.template index e6faf56..0194f59 100644 --- a/wrangler.toml.template +++ b/wrangler.toml.template @@ -1,4 +1,4 @@ -name = "your-worker-name" +name = "cf-r2-webdav" main = "src/index.ts" compatibility_date = "2023-01-01"