Deploy via GitHub Actions
See original GitHub issueCreate a GitHub Actions workflow the runs on pushes to a branch named production. This workflow should deploy the production environment of the worker to Cloudflare.
As a follow-up, once this initial workflow has been created, duplicate it for a branch named staging, and have it deploy the staging environment of the worker to Cloudflare.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Deploying with GitHub Actions
When a GitHub Actions workflow deploys to an environment, the environment is displayed on the main page of the repository. You can use...
Read more >Deployment Action · Actions · GitHub Marketplace
A GitHub action to create Deployments as part of your GitHub CI workflows. Required Permissions. **Important: you must grant your GitHub Actions workflow ......
Read more >Deploying with GitHub Actions - GitHub AE Docs
You can use a variety of events to trigger your deployment workflow. Some of the ...
Read more >Marketplace Actions Deploy to GitHub Pages
Automatically deploy your project to GitHub Pages with GitHub Actions. This action can be configured to push your production-ready code into any branch...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Alternatively, you could change the Webpack script to inject the full env, and then just use the environment directly without the .env file: https://github.com/MattIPv4/DNS-over-Discord/blob/6c457254930c705b347fa8ab69589b7fb7bfcd0d/webpack.config.js#L15
Yes, the .env file will need to be created. And yeah, building it from GitHub Secrets seems like the best approach