How to Deploy to Staging and Production with GitHub Actions

Code With Clinton
277 views •

How do you deploy one application to staging and production without mixing up the two environments? In this video, I use Tickify to show how I manage staging and production on separate DigitalOcean servers. We’ll look at the Git branches, GitHub Actions workflows, environment secrets, and deployment rules. Then I’ll make a change, test it on staging, and merge it into production. Chapters: 00:00 Staging vs production explained 01:20 The two servers and existing app 02:20 Staging and production URLs 05:50 Switching to the staging branch 07:10 GitHub Actions deployment workflows 09:40 GitHub environments and deployment secrets 11:45 SSH known hosts 13:20 Restricting deployments by branch 14:40 Making a test change 16:20 Committing the change to staging 17:50 Checking the staging deployment 19:20 Merging into production 20:20 Verifying the production deployment Subscribe to CodeWithClinton for more practical software development and deployment tutorials. #GitHubActions #StagingEnvironment #Deployment

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close