From 4f58bc5baff5e74030e737f481f7d08bd01efd4d Mon Sep 17 00:00:00 2001 From: MozeBaltyk Date: Sun, 14 Jan 2024 23:46:10 +0100 Subject: [PATCH] article --- content/news/how-to-create-this-blog/index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/news/how-to-create-this-blog/index.md b/content/news/how-to-create-this-blog/index.md index 0fab46f3..30e2c50f 100644 --- a/content/news/how-to-create-this-blog/index.md +++ b/content/news/how-to-create-this-blog/index.md @@ -292,7 +292,13 @@ To deploy the blog, I simply use Github Wokflow which build and publish it with I started with everytime that I was pushing the code, it deploy. It gave me no time after saving to read again my articles. Then I put it on `workflow_dispatch`, so I manually trigger the workflow to publish it. But the proper way to do, I just push on branch `gh-pages` which is set as the default then merge it with the main so it trigger the publication only when it arrive on the main branch. -In the settings, in the tab branch protection, an option "Require a pull request before merging" prevent to directly commit on `main`. +In the settings, in the tab branch protection, an option **Lock branch** prevent to directly commit on `main`. + +> From Github documentation: +> +> Branch is read-only. Users cannot push to the branch. + +And option **Require a pull request before merging** oblige you to review changes. > From Github documentation: >