Skip to content

Commit ad9e907

Browse files
committed
accidentally deleted .github
1 parent 8366390 commit ad9e907

File tree

2 files changed

+154
-0
lines changed

2 files changed

+154
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: 🐛 Bug Report
2+
description: Report any issues you encounter to make hugoplate even more efficient.
3+
4+
body:
5+
- type: input
6+
id: hugo-version
7+
attributes:
8+
label: What is your Hugo Extended Version
9+
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.
10+
validations:
11+
required: true
12+
13+
- type: input
14+
id: go-version
15+
attributes:
16+
label: What is your Go Version
17+
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.
18+
validations:
19+
required: true
20+
21+
- type: input
22+
id: node-version
23+
attributes:
24+
label: What is your Node.js Version
25+
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.
26+
validations:
27+
required: true
28+
29+
- type: input
30+
id: operating-system
31+
attributes:
32+
label: What is your Operating System
33+
validations:
34+
required: false
35+
36+
- type: checkboxes
37+
id: make-sure
38+
attributes:
39+
label: Check for Existing Issues
40+
description: |
41+
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.
42+
options:
43+
- label: I have searched and found no relevant issues.
44+
required: true
45+
46+
- type: textarea
47+
id: expected-behavior
48+
attributes:
49+
label: Expected Behavior
50+
description: A clear description of what you expected to happen.
51+
validations:
52+
required: true
53+
54+
- type: textarea
55+
id: steps-to-reproduce
56+
attributes:
57+
label: Steps to Reproduce
58+
description: |
59+
Please explain the steps required to duplicate this issue. Include detailed commands and expected outcomes.
60+
placeholder: |
61+
1.
62+
2.
63+
3.
64+
validations:
65+
required: true
66+
67+
- type: input
68+
id: reproduction-url
69+
attributes:
70+
label: Code Reproduction URL
71+
description: Please reproduce this issue and provide a link to the repository.
72+
placeholder: github.com/yourusername/repo
73+
74+
- type: textarea
75+
id: additional-information
76+
attributes:
77+
label: Additional Information
78+
description: |
79+
List any other information that is relevant to your issue. You can use Markdown for formatting, including code blocks, links, etc.

.github/workflows/main.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
# Environment variables available to all jobs and steps in this workflow
16+
env:
17+
HUGO_ENV: production
18+
HUGO_VERSION: "0.141.0"
19+
GO_VERSION: "1.23.3"
20+
NODE_VERSION: "20.0.0"
21+
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
22+
TINA_TOKEN: ${{ vars.TINA_TOKEN }}
23+
24+
jobs:
25+
# Build job
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ env.NODE_VERSION }}
34+
35+
- name: Install Hugo
36+
run: |
37+
curl -LO "https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz"
38+
tar -xvf hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
39+
sudo mv hugo /usr/local/bin/
40+
rm hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
41+
hugo version
42+
43+
- name: Install Go
44+
run: |
45+
curl -LO "https://dl.google.com/go/go${{ env.GO_VERSION }}.linux-amd64.tar.gz"
46+
sudo tar -C /usr/local -xzf go${{ env.GO_VERSION }}.linux-amd64.tar.gz
47+
echo "export PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV
48+
rm go${{ env.GO_VERSION }}.linux-amd64.tar.gz
49+
go version
50+
51+
- name: Setup Project
52+
run: npm run project-setup
53+
54+
- name: Install npm dependencies
55+
run: npm install
56+
57+
- name: Publish to GitHub Pages
58+
run: npm run build
59+
60+
- name: Upload artifact
61+
uses: actions/upload-pages-artifact@v3
62+
with:
63+
path: ./public
64+
65+
# Deployment job
66+
deploy:
67+
environment:
68+
name: github-pages
69+
url: ${{ steps.deployment.outputs.page_url }}
70+
runs-on: ubuntu-latest
71+
needs: build
72+
steps:
73+
- name: Deploy to GitHub Pages
74+
id: deployment
75+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)