Skip to content

Commit

Permalink
deploy-1
Browse files Browse the repository at this point in the history
  • Loading branch information
aigem committed Sep 11, 2024
1 parent bff140c commit 67feb99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ 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
- name: Publish to Cloudflare Workers
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}


- name: Debug Info
run: |
echo "Node version: $(node -v)"
echo "NPM version: $(npm -v)"
echo "Wrangler version: $(npx wrangler --version)"
2 changes: 1 addition & 1 deletion wrangler.toml.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "your-worker-name"
name = "cf-r2-webdav"
main = "src/index.ts"
compatibility_date = "2023-01-01"

Expand Down

0 comments on commit 67feb99

Please sign in to comment.