Trigger deployment from Github Actions #101
timkelty
started this conversation in
Feature Requests & Enhancements
Replies: 1 comment
-
|
For me the workaround is not really feasable. I've got a monorepo structure with a backend and frontend folder. Backend gets deployed automatically by craft cloud on push to the main branch. Frontend gets deployed to Vercel using Github Actions, also on push to main. I'm having a few issues with this:
What i was thinking for a workaround is to use the "npm-script" config to trigger a github action through a workflow dispatch. Do you think this is achievable like this? Ideally we would be able to do something like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There isn't (yet) a direct API to trigger a deployment externally (other than
git push). This would allow you to trigger deployments directly from GIthub Actions.Until that lands, you can still achieve this will something like this:
main(or whatever) as your default branch for production codeproductionbranch (probably make it protected)Now, when you push to
main, the workflow will be triggered, butproductionwill only receive a push (and thus a deployment) if the steps preceding it succeed.Beta Was this translation helpful? Give feedback.
All reactions