Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrangler secrets pages #331

Closed
okuzlu opened this issue Nov 25, 2024 · 2 comments
Closed

wrangler secrets pages #331

okuzlu opened this issue Nov 25, 2024 · 2 comments

Comments

@okuzlu
Copy link

okuzlu commented Nov 25, 2024

Im trying to set secrets to cloudflare pages.
var is doing nothing, but setting secrets shows this error.

 - name: Deploy
        uses: cloudflare/wrangler-action@v3
        env:
          NUXT_PW: ${{ secrets.NUXT_PW }}
          VAR1: ${{ vars.VAR1 }}
        with:
          wranglerVersion: "3.90.0"
          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          command: pages deploy dist/ --project-name=${{ vars.PROJECT_NAME }}
          secrets: 
            NUXT_PW
         vars:
            VAR1
Uploading secrets...
  /usr/local/bin/npx wrangler secret:bulk
  
   ⛅️ wrangler 3.90.0
  -------------------
  
  ▲ [WARNING] `wrangler secret:bulk` is deprecated and will be removed in a future major version.
  
    Please use `wrangler secret bulk` instead, which accepts exactly the same arguments.
  
  
  ✘ [ERROR] Required Worker name missing. Please specify the Worker name in wrangler.toml, or pass it as an argument with `--name <worker-name>`
@therealstein
Copy link

Hey there, thanks for opening the issue! I also experienced the same problem today. There must be some way to store the secrets in GitHub Secrets.

Any ideas would be appreciated.

@jahands
Copy link
Contributor

jahands commented Nov 26, 2024

I believe this is a dupe of #304

@jahands jahands closed this as completed Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants