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

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 Likes

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

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.