Env ,Variables in Github Workflow
I have created a worker and deploy it from github actions.
I have certain variables and secrets.
Firstly i ahve tried to deploy without setting any variable in the actions but setted up in the dashboard.
I have multiple questions regarding this
1. Every time I push from actions the set variables from cloudflare dashboard wiped out ?
2. I have defined secrets in github action workflow but is there an easy way to pass variable from workflow
1 Reply
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
secrets: |
DATABASE_URL
JWT_SECRET
GROQ_KEY
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
GROQ_KEY: ${{ secrets.GROQ_KEY }}
my workflow is this is there an way I can send these secrets as the vars which is not encrypted in the cloudflare environment dashboard