From 63207d77bf6d2b7b0e077b901d0ae10ebd8964e4 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sat, 22 Jul 2023 13:53:41 +0600 Subject: [PATCH] added aws amplify settings --- .github/workflows/main.yml | 2 +- .gitlab-ci.yml | 3 +-- amplify.yml | 29 +++++++++++++++++++++++++++++ exampleSite/hugo.toml | 3 +++ netlify.toml | 3 +-- package.json | 2 +- readme.md | 7 +++++-- vercel-build.sh | 2 +- 8 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 amplify.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e526126..155bf0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ permissions: # Environment variables available to all jobs and steps in this workflow env: HUGO_ENV: production - HUGO_VERSION: "0.115.2" + HUGO_VERSION: "0.115.4" GO_VERSION: "1.20.5" NODE_VERSION: "18.15.0" TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 56041e8..dfb1456 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ stages: variables: HUGO_ENV: production - HUGO_VERSION: "0.115.1" + HUGO_VERSION: "0.115.4" GO_VERSION: "1.20.5" NODE_VERSION: "18.16.1" @@ -33,7 +33,6 @@ pages: script: - npm run project-setup - npm run build - - echo "SITE BUILT SUCCESSFULLY! LIVE AT https://$GITLAB_USER_LOGIN.gitlab.io/$CI_PROJECT_NAME/" artifacts: paths: - public diff --git a/amplify.yml b/amplify.yml new file mode 100644 index 0000000..d6498c9 --- /dev/null +++ b/amplify.yml @@ -0,0 +1,29 @@ +version: 1 +frontend: + phases: + preBuild: + commands: + - yum install -y curl + - curl -LO "https://github.com/gohugoio/hugo/releases/download/v0.115.4/hugo_extended_0.115.4_Linux-64bit.tar.gz" + - tar -xvf hugo_extended_0.115.4_Linux-64bit.tar.gz + - mv hugo /usr/local/bin/ + - rm hugo_extended_0.115.4_Linux-64bit.tar.gz + - echo "HUGO 0.115.4 INSTALLED" + - curl -LO "https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz" + - tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz + - export PATH=$PATH:/usr/local/go/bin + - rm go1.20.5.linux-amd64.tar.gz + - echo "GO 1.20.5 INSTALLED" + - npm install + build: + commands: + - npm run project-setup + - npm run build + artifacts: + # IMPORTANT - Please verify your build output directory + baseDirectory: /public + files: + - "**/*" + cache: + paths: + - node_modules/**/* diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 9f7b6d2..43260bb 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -1,6 +1,9 @@ ######################## default configuration #################### +# The base URL of your site (required). This will be prepended to all relative URLs. baseURL = "https://hugoplate.netlify.app/" +# Title of your website (required). title = "Hugoplate" +# Your theme name # theme = "hugoplate" # Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List timeZone = "America/New_York" diff --git a/netlify.toml b/netlify.toml index f116ed9..94087fb 100755 --- a/netlify.toml +++ b/netlify.toml @@ -3,6 +3,5 @@ publish = "public" command = "yarn project-setup; yarn build" [build.environment] -HUGO_VERSION = "0.115.3" +HUGO_VERSION = "0.115.4" GO_VERSION = "1.20.5" -HUGO_BASEURL = "/" diff --git a/package.json b/package.json index 5806064..3f03cc2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.5.3", + "version": "1.6.0", "license": "MIT", "author": "zeon.studio", "scripts": { diff --git a/readme.md b/readme.md index 00d92b4..d634700 100755 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@

Hugoplate is a free starter template built with Hugo, and TailwindCSS, providing everything you need to jumpstart your Hugo project and save valuable time.

-

Made with ♥ by Zeon Studio

+

Made with ♥ by Zeon Studio

👀 Demo | Page Speed (95+)🚀

@@ -150,15 +150,18 @@ npm run build ### 👉 Deploy Process -We have provided 4 different platform deploy platform configuration with this template, so you can deploy easily. +We have provided 5 different platform deploy platform configuration with this template, so you can deploy easily. - [Netlify](https://www.netlify.com/) - [Vercel](https://vercel.com/) - [Github Actions](https://github.com/features/actions) - [Gitlab Ci](https://docs.gitlab.com/ee/ci/) +- [AWS Amplify](https://aws.amazon.com/amplify/) And if you want to Host some other hosting platforms. then you can build your project, and you will get a `public` folder. that you can copy and paste on your hosting platform. +> **Note:** You must change the `baseURL` in the `hugo.toml` file. Otherwise, your site will not work properly. + --- ## 🔒 Guide to Staying Compliant diff --git a/vercel-build.sh b/vercel-build.sh index 040b73a..e53ba96 100755 --- a/vercel-build.sh +++ b/vercel-build.sh @@ -3,7 +3,7 @@ # default versions NODE_VERSION='18.16.1'; GO_VERSION='1.20.5'; -HUGO_VERSION='0.115.2'; +HUGO_VERSION='0.115.4'; # install Node.js # echo "Installing Node.js $NODE_VERSION..."