From 610ca4db19a818da81effa1b5b092a96b4384516 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 12 Nov 2024 11:11:03 +0800 Subject: [PATCH] =?UTF-8?q?Docs:=20=E6=9B=B4=E6=96=B0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 8 ++++++++ README.md | 8 ++++++++ content/posts/hello-world.md | 8 ++++++++ themes/FixIt | 2 +- 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.en.md b/README.en.md index d12340f..3cc5a26 100644 --- a/README.en.md +++ b/README.en.md @@ -58,6 +58,14 @@ When your site is ready to deploy, run the following command: hugo ``` +### Deploy to GitHub Pages + +1. Head to Setting => Actions => General => Workflow permissions => Check "Read and write permissions". +2. Manually run Workflow: Actions => Hugo build and deploy => Click Run workflow button. +3. GitHub Pages settings: Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save. + +> Only need to manually run the Workflow the first time you deploy, and it will be automatically deployed every time you push to the `main` branch. + ### Update theme Afterwards you can upgrade the theme with the following command: diff --git a/README.md b/README.md index 55860cb..1d2d0ea 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,14 @@ hugo server -e production hugo ``` +### 部署到 GitHub Pages + +1. 转到 Setting => Actions => General => Workflow permissions => 选中 "Read and write permissions"。 +2. 手动运行 Workflow: Actions => Hugo build and deploy => 点击 Run workflow 按钮。 +3. GitHub Pages 设置:Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save。 + +> 只有第一次部署时需要手动运行 Workflow,之后每次推送到 `main` 分支都会自动部署。 + ### 更新主题 之后,你可以使用以下命令升级主题: diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md index 6b2e627..60ffcc7 100644 --- a/content/posts/hello-world.md +++ b/content/posts/hello-world.md @@ -57,6 +57,14 @@ When your site is ready to deploy, run the following command: hugo ``` +### Deploy to GitHub Pages + +1. Head to Setting => Actions => General => Workflow permissions => Check "Read and write permissions". +2. Manually run Workflow: Actions => Hugo build and deploy => Click Run workflow button. +3. GitHub Pages settings: Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save. + +> Only need to manually run the Workflow the first time you deploy, and it will be automatically deployed every time you push to the `main` branch. + ### Update theme Afterwards you can upgrade the theme with the following command: diff --git a/themes/FixIt b/themes/FixIt index fcb0f1e..fd15415 160000 --- a/themes/FixIt +++ b/themes/FixIt @@ -1 +1 @@ -Subproject commit fcb0f1efd55ee3ff195a63abdb27643c0e007f5c +Subproject commit fd15415b9ac41672d01b4373c5f97ab5304cc961