Publish vs Save #40
Replies: 6 comments 3 replies
-
|
That makes sense. I guess the only 2 ways I can think of to achieve that would be:
I actually think there may be something to dig further here, allowing you to define actions you could perform with the click of a button or via a webhook. Does the second option make sense to you? |
Beta Was this translation helpful? Give feedback.
-
|
It's somewhat on the side, but also related, so I'll take a stab at mentioning it here. First of all – I think Pages CMS is a brilliant idea and the little I've tested it so far looks fabulous. But is it possible to add support for optionally using the GitHub flow (branch, commit, PR, review, merge) somehow? It would fit with option 2, but it wouldn't be a static "staging branch", but basically a new branch for every "session", and when you hit "publish" it doesn't really publish, but creates the PR instead. |
Beta Was this translation helpful? Give feedback.
-
|
I wanted to allow users to define buttons that can trigger a GitHub Action, that may allow you to achieve some of that? |
Beta Was this translation helpful? Give feedback.
-
|
Jumping into this conversation , i think this is great idea of allowing "publish" only when ready. Something else that would tie with this is "editorial workflow" / "Deploy Preview". Both Vercel and netlify allow "preview deployments" live from a seperate branch before its merged. Just like you request comments in a pull request before merging it , usually you would want to get feedback / comments before saving a file/post and deploying it live. So instead of just a "Publish" button , it would be nice to have two buttons
|
Beta Was this translation helpful? Give feedback.
-
|
As i look closer at this deploy preview feature I just requested , both vercel and netlify automatically generate a preview when a PR is created. A second way they generate preview is using a "preview" branch. If we keep a single staging branch , the "editors" would be forced to push all "unpublished" changes at once. I think the whole point of first saving and then "publishing" is to be able to publish only when ready. On the pages cms , we would want every post to either be "saved" , "Preview" , or "live". Not so easy to implement though. |
Beta Was this translation helpful? Give feedback.
-
|
Posted some related thoughts in #142 (comment) mostly around "branch protection" but the end result would be/feel the same, afaict. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First off, I love Pages CMS. Thanks for putting your time and energy into this.
As I've been testing this out, I've wanted a publish button separate from the Save button. This way, I'm not rebuilding my site every time I save a file. One use case I have is modifying multiple files, but want them to be published to my site all at the same time.
Beta Was this translation helpful? Give feedback.
All reactions