I’m having trouble configuring a Staging environment in my project. The documentation says that I should change the initPlasmicLoader, adding the parameter preview: process.env.DEPLOY_ENVIRONMENT === ‘staging’, add DEPLOY_ENVIRONMENT to the environment variables, and add a second webhook, similar to the production one.
FWIW, GitHub actions is really powerful and flexible, but it also makes it more complicated to configure.
If you just want to publish a website, might I suggest setting up Vercel with your GitHub repo? https://vercel.com/
It’s streamlined for building and deploying webpages, so you can just create 2 projects via their web app. And trigger them via the respective webhook. (Instead of writing GitHub workflow files)