Skip to content

Commit 22f908e

Browse files
committed
Add GitHub Pages deployment workflow and create index.html for project website
1 parent 7011cd0 commit 22f908e

2 files changed

Lines changed: 149 additions & 10 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: deploy-pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ["main"]
86

9-
# Allows you to run this workflow manually from the Actions tab
107
workflow_dispatch:
118

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2014
concurrency:
2115
group: "pages"
2216
cancel-in-progress: false
2317

2418
jobs:
25-
# Single deploy job since we're just deploying
2619
deploy:
2720
environment:
2821
name: github-pages
@@ -31,13 +24,15 @@ jobs:
3124
steps:
3225
- name: Checkout
3326
uses: actions/checkout@v4
27+
3428
- name: Setup Pages
3529
uses: actions/configure-pages@v5
30+
3631
- name: Upload artifact
3732
uses: actions/upload-pages-artifact@v3
3833
with:
39-
# Upload entire repository
40-
path: '.'
34+
path: './site'
35+
4136
- name: Deploy to GitHub Pages
4237
id: deployment
4338
uses: actions/deploy-pages@v4

site/index.html

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<title>STRUCT - Automated Project Structure Generator</title>
8+
<style>
9+
/* Reset and base styles */
10+
* {
11+
margin: 0;
12+
padding: 0;
13+
box-sizing: border-box;
14+
}
15+
16+
body {
17+
background-color: #121212;
18+
color: #e0e0e0;
19+
font-family: Arial, sans-serif;
20+
line-height: 1.6;
21+
padding: 20px;
22+
}
23+
24+
header {
25+
text-align: center;
26+
padding: 40px 0;
27+
}
28+
29+
header h1 {
30+
font-size: 3em;
31+
margin-bottom: 10px;
32+
color: #ffffff;
33+
}
34+
35+
header p {
36+
font-size: 1.2em;
37+
color: #bbbbbb;
38+
}
39+
40+
.container {
41+
max-width: 800px;
42+
margin: 0 auto;
43+
text-align: center;
44+
}
45+
46+
section {
47+
margin: 40px 0;
48+
}
49+
50+
section h2 {
51+
font-size: 2em;
52+
margin-bottom: 20px;
53+
color: #ffffff;
54+
}
55+
56+
ul {
57+
list-style: none;
58+
padding: 0;
59+
text-align: left;
60+
}
61+
62+
ul li {
63+
background: #1e1e1e;
64+
margin: 10px 0;
65+
padding: 15px;
66+
border-radius: 5px;
67+
}
68+
69+
.btn {
70+
display: inline-block;
71+
padding: 15px 30px;
72+
margin: 20px 10px;
73+
font-size: 1em;
74+
font-weight: bold;
75+
text-decoration: none;
76+
border-radius: 5px;
77+
transition: background-color 0.3s ease;
78+
}
79+
80+
.btn-github {
81+
background-color: #24292e;
82+
color: #ffffff;
83+
}
84+
85+
.btn-github:hover {
86+
background-color: #444c56;
87+
}
88+
89+
.btn-paypal {
90+
background-color: #ffc439;
91+
color: #000000;
92+
}
93+
94+
.btn-paypal:hover {
95+
background-color: #ffb347;
96+
}
97+
98+
footer {
99+
margin-top: 40px;
100+
text-align: center;
101+
font-size: 0.9em;
102+
color: #777777;
103+
}
104+
</style>
105+
</head>
106+
107+
<body>
108+
<header>
109+
<h1>STRUCT</h1>
110+
<p>Automated Project Structure Generator</p>
111+
</header>
112+
<div class="container">
113+
<p>
114+
Welcome to the official website of STRUCT. Generate your project structures effortlessly using YAML
115+
configurations.
116+
</p>
117+
118+
<section id="features">
119+
<h2>Features</h2>
120+
<ul>
121+
<li><strong>YAML Configuration:</strong> Define your project structure in a simple YAML file.</li>
122+
<li><strong>Template Variables:</strong> Use placeholders and custom filters for dynamic content.</li>
123+
<li><strong>Custom File Permissions:</strong> Set permissions directly from the YAML configuration.</li>
124+
<li><strong>Remote Content Fetching:</strong> Include content from remote sources effortlessly.</li>
125+
<li><strong>File Handling Strategies:</strong> Choose from overwrite, skip, append, rename, or backup options.
126+
</li>
127+
<li><strong>Dry Run:</strong> Preview actions without making changes.</li>
128+
<li><strong>Configuration Validation:</strong> Validate your YAML file before execution.</li>
129+
<li><strong>Verbose Logging:</strong> Access detailed logs for debugging and monitoring.</li>
130+
</ul>
131+
</section>
132+
133+
<div>
134+
<a class="btn btn-github" href="https://github.com/httpdss/struct" target="_blank">Visit GitHub Repository</a>
135+
<a class="btn btn-paypal" href="https://www.paypal.me/httpdss"
136+
target="_blank">Donate via PayPal</a>
137+
</div>
138+
</div>
139+
<footer>
140+
<p>&copy; 2025 STRUCT. All rights reserved.</p>
141+
</footer>
142+
</body>
143+
144+
</html>

0 commit comments

Comments
 (0)