Skip to content

Commit

Permalink
added aws amplify settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsomrat committed Jul 22, 2023
1 parent 2cd40c5 commit 63207d7
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 1 addition & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
29 changes: 29 additions & 0 deletions amplify.yml
Original file line number Diff line number Diff line change
@@ -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/**/*
3 changes: 3 additions & 0 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 1 addition & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "/"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hugoplate",
"description": "hugo tailwindcss boilerplate",
"version": "1.5.3",
"version": "1.6.0",
"license": "MIT",
"author": "zeon.studio",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p align="center">Hugoplate is a free starter template built with Hugo, and TailwindCSS, providing everything you need to jumpstart your Hugo project and save valuable time.</p>

<p align="center"> Made with ♥ by <a href="https://zeon.studio/">Zeon Studio</a></p>
<p align="center">Made with ♥ by <a href="https://zeon.studio/">Zeon Studio</a></p>

<h2 align="center"> <a target="_blank" href="https://hugoplate.netlify.app/" rel="nofollow">👀 Demo</a> | <a target="_blank" href="https://pagespeed.web.dev/analysis/https-hugoplate-netlify-app/6lyxjw6t4r?form_factor=desktop">Page Speed (95+)🚀</a>
</h2>
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vercel-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit 63207d7

Please sign in to comment.