Secrets in Cloudflare Workers

Hello, I am trying to upload secrets to my worker via GitHub Actions. However, it is not working. It says the secrets are uploaded but they aren't there. Do I need to put the secrets in my Wrangler.toml with dummy values so it registers? Repo: https://github.com/modrinth/sisyphus. This is my actions.yml. Everything works but secrets upload:
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.2
- name: Deploy app
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy --env staging
secrets: |
LABRINTH_ADMIN_KEY
RATE_LIMIT_IGNORE_KEY
env:
LABRINTH_ADMIN_KEY: ${{ secrets.LABRINTH_ADMIN_SECRET_DEV }}
RATE_LIMIT_IGNORE_KEY: ${{ secrets.RATE_LIMIT_IGNORE_KEY_DEV }}
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.2
- name: Deploy app
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy --env staging
secrets: |
LABRINTH_ADMIN_KEY
RATE_LIMIT_IGNORE_KEY
env:
LABRINTH_ADMIN_KEY: ${{ secrets.LABRINTH_ADMIN_SECRET_DEV }}
RATE_LIMIT_IGNORE_KEY: ${{ secrets.RATE_LIMIT_IGNORE_KEY_DEV }}
1 Reply
Geometrically
GeometricallyOP13mo ago
nvm fixed, had to set environment: staging in the with val
Want results from more Discord servers?
Add your server