added aws amplify settings

This commit is contained in:
somrat sorkar 2023-07-22 13:53:41 +06:00
parent 2cd40c52e1
commit 63207d77bf
8 changed files with 42 additions and 9 deletions

View File

@ -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 }}

View File

@ -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

29
amplify.yml Normal file
View File

@ -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/**/*

View File

@ -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"

View File

@ -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 = "/"

View File

@ -1,7 +1,7 @@
{
"name": "hugoplate",
"description": "hugo tailwindcss boilerplate",
"version": "1.5.3",
"version": "1.6.0",
"license": "MIT",
"author": "zeon.studio",
"scripts": {

View File

@ -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>
@ -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

View File

@ -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..."