From 214f6df805fed626b4b97f39bb8920f986af39dc Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Mon, 11 Apr 2022 09:43:13 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20deployment=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/content/docs/hosting-deployment/index.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/docs/hosting-deployment/index.md b/exampleSite/content/docs/hosting-deployment/index.md index 13cc0a3e..b4c6e1dc 100644 --- a/exampleSite/content/docs/hosting-deployment/index.md +++ b/exampleSite/content/docs/hosting-deployment/index.md @@ -28,6 +28,10 @@ GitHub allows hosting on [GitHub Pages](https://docs.github.com/en/pages/getting The file needs to be in YAML format, placed within the `.github/workflows/` directory of your GitHub repository and named with a `.yml` extension. +{{< alert >}} +**Important:** Ensure you set the correct branch name under `branches` and in the deploy step `if` parameter to the source branch used in your project. +{{< /alert >}} + ```yaml # .github/workflows/gh-pages.yml @@ -36,7 +40,7 @@ name: GitHub Pages on: push: branches: - - main # change to the branch name for your project + - main jobs: build-deploy: @@ -45,7 +49,7 @@ jobs: group: ${{ github.workflow }}-${{ github.ref }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true fetch-depth: 0 @@ -94,7 +98,7 @@ Then in the root of your site repository, create a `netlify.toml` file: TZ = "UTC" # Set to preferred timezone [context.production.environment] - HUGO_VERSION = "0.87.0" + HUGO_VERSION = "0.96.0" HUGO_ENV = "production" ```