Skip to main content

How to do preview deploys (per PR) on GitHub + deploy to prod via GitHub Actions?

  • March 25, 2024
  • 2 replies
  • 219 views

I’m wondering how can I automate app preview and deployment from GitHub Actions with Monday Code.

Has anyone found a practical way to:

  • Preview deploy PRs on each push to test-drive the app before merging the branch into master

  • Automatically deploy and promote to production once the tests etc have passed and the PR is merged into master?

I don’t understand if an app can have multiple versions at once, and if it’s possible to promote a version from Draft to production programmatically.

If not, what is the solution? Have a second, separate development app and deploy PRs to it while deploying merges to master to a separate “real”/production app? And then manually promote from Draft to production via the Monday UI?

2 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • March 27, 2024

Hello there @karpelig,

Would you be able to please fill this form so our team can take a look into this? Please add as much detail about your case as possible.

Looking forward to hearing from you via the form!

Cheers,
Matias


dvdsmpsn
Forum|alt.badge.img+1
  • Participating Frequently
  • May 12, 2024

My thought would be to have separate tenants/accounts with separate apps for dev, stage and production. Each would be on a separate git branch with a GitHub action to deploy the correct branch to the correct tenant/account.

When you need to publish a new version, you can do this manually in monday.com.

This approach works nicely for us using GitLab CI/CD instead of GitHub actions.