I recently removed my .env via .gitignore (because, well, that's good practice) I tried to change to environmental variables in github, I can't figure out how to access them.
I set it in secrets and variables for environment and repository.
I tried setting it in the workflow.yaml
like so:
env:
CONTENTFUL_DELIVERY_TOKEN: ${{ vars.CONTENTFUL_DELIVERY_TOKEN}}
CONTENTFUL_PREVIEW_TOKEN: ${{ vars.CONTENTFUL_PREVIEW_TOKEN}}
CONTENTFUL_SPACE_ID: ${{ vars.CONTENTFUL_SPACE_ID}}
still no luck. Is there any documentation on how to migrate from .env to variables inside CI/CD ?