Skip to content

Commit

Permalink
article
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed Jan 14, 2024
1 parent a43931d commit 4f58bc5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content/news/how-to-create-this-blog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
>
Expand Down

0 comments on commit 4f58bc5

Please sign in to comment.