$UP: BASE +++

This commit is contained in:
2024-04-01 23:41:56 +05:30
parent dd7f6b7595
commit d294889535
116 changed files with 16947 additions and 2 deletions

72
.github/ISSUE_TEMPLATE/bug_report.yml vendored Executable file
View File

@@ -0,0 +1,72 @@
name: 🐛 Bug Report
description: Report any issues you encounter to make hugoplate even more efficient.
body:
- type: input
id: hugo-version
attributes:
label: What is your Hugo Extended Version
description: Check the [README](https://github.com/zeon-studio/hugoplate?tab=readme-ov-file#user-content--prerequisites) for the required version. Use "hugo version" in your terminal to see your Hugo version.
validations:
required: true
- type: input
id: go-version
attributes:
label: What is your Go Version
description: Check the [README](https://github.com/zeon-studio/hugoplate?tab=readme-ov-file#user-content--prerequisites) for the required version. Use "go version" in your terminal to see your Go version.
validations:
required: true
- type: input
id: node-version
attributes:
label: What is your Node.js Version
description: Check the [README](https://github.com/zeon-studio/hugoplate?tab=readme-ov-file#user-content--prerequisites) for the required version. Use "node -v" in your terminal to see your Node.js version.
validations:
required: true
- type: checkboxes
id: make-sure
attributes:
label: Check for Existing Issues
description: |
Before reporting a problem, please confirm that you've searched thoroughly for any existing reports on the same issue. If no relevant issues are found, proceed with the report.
options:
- label: I have searched and found no relevant issues.
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: A clear description of what you expected to happen.
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: |
Please explain the steps required to duplicate this issue. Include detailed commands and expected outcomes.
placeholder: |
1.
2.
3.
validations:
required: true
- type: input
id: reproduction-url
attributes:
label: Code Reproduction URL
description: Please reproduce this issue and provide a link to the repository.
placeholder: github.com/yourusername/repo
- type: textarea
id: additional-information
attributes:
label: Additional Information
description: |
List any other information that is relevant to your issue. You can use Markdown for formatting, including code blocks, links, etc.

75
.github/workflows/main.yml vendored Executable file
View File

@@ -0,0 +1,75 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Environment variables available to all jobs and steps in this workflow
env:
HUGO_ENV: production
HUGO_VERSION: "0.121.2"
GO_VERSION: "1.20.5"
NODE_VERSION: "20.0.0"
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
TINA_TOKEN: ${{ vars.TINA_TOKEN }}
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Hugo
run: |
curl -LO "https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz"
tar -xvf hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
sudo mv hugo /usr/local/bin/
rm hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
hugo version
- name: Install Go
run: |
curl -LO "https://dl.google.com/go/go${{ env.GO_VERSION }}.linux-amd64.tar.gz"
sudo tar -C /usr/local -xzf go${{ env.GO_VERSION }}.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV
rm go${{ env.GO_VERSION }}.linux-amd64.tar.gz
go version
- name: Setup Project
run: npm run project-setup
- name: Install npm dependencies
run: npm install
- name: Publish to GitHub Pages
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4