question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy via GitHub Actions

See original GitHub issue

Create 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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
MattIPv4commented, Oct 10, 2021

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

1reaction
MattIPv4commented, Oct 10, 2021

Yes, the .env file will need to be created. And yeah, building it from GitHub Secrets seems like the best approach

Read more comments on GitHub >

github_iconTop 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 >
Deployment - GitHub Docs
Automatically deploy projects with GitHub Actions.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found