added aws amplify settings
This commit is contained in:
parent
2cd40c52e1
commit
63207d77bf
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -15,7 +15,7 @@ permissions:
|
|||||||
# Environment variables available to all jobs and steps in this workflow
|
# Environment variables available to all jobs and steps in this workflow
|
||||||
env:
|
env:
|
||||||
HUGO_ENV: production
|
HUGO_ENV: production
|
||||||
HUGO_VERSION: "0.115.2"
|
HUGO_VERSION: "0.115.4"
|
||||||
GO_VERSION: "1.20.5"
|
GO_VERSION: "1.20.5"
|
||||||
NODE_VERSION: "18.15.0"
|
NODE_VERSION: "18.15.0"
|
||||||
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
|
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
|
||||||
|
@ -3,7 +3,7 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
HUGO_ENV: production
|
HUGO_ENV: production
|
||||||
HUGO_VERSION: "0.115.1"
|
HUGO_VERSION: "0.115.4"
|
||||||
GO_VERSION: "1.20.5"
|
GO_VERSION: "1.20.5"
|
||||||
NODE_VERSION: "18.16.1"
|
NODE_VERSION: "18.16.1"
|
||||||
|
|
||||||
@ -33,7 +33,6 @@ pages:
|
|||||||
script:
|
script:
|
||||||
- npm run project-setup
|
- npm run project-setup
|
||||||
- npm run build
|
- npm run build
|
||||||
- echo "SITE BUILT SUCCESSFULLY! LIVE AT https://$GITLAB_USER_LOGIN.gitlab.io/$CI_PROJECT_NAME/"
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
29
amplify.yml
Normal file
29
amplify.yml
Normal 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/**/*
|
@ -1,6 +1,9 @@
|
|||||||
######################## default configuration ####################
|
######################## default configuration ####################
|
||||||
|
# The base URL of your site (required). This will be prepended to all relative URLs.
|
||||||
baseURL = "https://hugoplate.netlify.app/"
|
baseURL = "https://hugoplate.netlify.app/"
|
||||||
|
# Title of your website (required).
|
||||||
title = "Hugoplate"
|
title = "Hugoplate"
|
||||||
|
# Your theme name
|
||||||
# theme = "hugoplate"
|
# 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
|
# 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"
|
timeZone = "America/New_York"
|
||||||
|
@ -3,6 +3,5 @@ publish = "public"
|
|||||||
command = "yarn project-setup; yarn build"
|
command = "yarn project-setup; yarn build"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.115.3"
|
HUGO_VERSION = "0.115.4"
|
||||||
GO_VERSION = "1.20.5"
|
GO_VERSION = "1.20.5"
|
||||||
HUGO_BASEURL = "/"
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hugoplate",
|
"name": "hugoplate",
|
||||||
"description": "hugo tailwindcss boilerplate",
|
"description": "hugo tailwindcss boilerplate",
|
||||||
"version": "1.5.3",
|
"version": "1.6.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "zeon.studio",
|
"author": "zeon.studio",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -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">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 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>
|
</h2>
|
||||||
@ -150,15 +150,18 @@ npm run build
|
|||||||
|
|
||||||
### 👉 Deploy Process
|
### 👉 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/)
|
- [Netlify](https://www.netlify.com/)
|
||||||
- [Vercel](https://vercel.com/)
|
- [Vercel](https://vercel.com/)
|
||||||
- [Github Actions](https://github.com/features/actions)
|
- [Github Actions](https://github.com/features/actions)
|
||||||
- [Gitlab Ci](https://docs.gitlab.com/ee/ci/)
|
- [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.
|
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
|
## 🔒 Guide to Staying Compliant
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# default versions
|
# default versions
|
||||||
NODE_VERSION='18.16.1';
|
NODE_VERSION='18.16.1';
|
||||||
GO_VERSION='1.20.5';
|
GO_VERSION='1.20.5';
|
||||||
HUGO_VERSION='0.115.2';
|
HUGO_VERSION='0.115.4';
|
||||||
|
|
||||||
# install Node.js
|
# install Node.js
|
||||||
# echo "Installing Node.js $NODE_VERSION..."
|
# echo "Installing Node.js $NODE_VERSION..."
|
||||||
|
Loading…
Reference in New Issue
Block a user