-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (44 loc) · 1.82 KB
/
Copy pathindex.html
File metadata and controls
47 lines (44 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub Actions CI/CD Documentation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>GitHub Actions CI/CD Workflow Documentation</h1>
<p>A step-by-step guide to deploying a static site with GitHub Actions.</p>
</header>
<main>
<section id="steps">
<h2>Steps to Set Up the Workflow</h2>
<div class="step">
<h3>1. Create a New GitHub Repository</h3>
<p>Create a repository named <strong>gh-deployment-workflow</strong> and add basic files like <code>index.html</code> and <code>README.md</code>.</p>
</div>
<div class="step">
<h3>2. Set Up GitHub Actions Workflow</h3>
<p>Create a <code>.github/workflows/deploy.yml</code> file to define the workflow for GitHub Pages deployment.</p>
</div>
<div class="step">
<h3>3. Configure Workflow Triggers</h3>
<p>Set the workflow to trigger on changes to the <code>index.html</code> file on the main branch.</p>
</div>
<div class="step">
<h3>4. Add Deploy Step</h3>
<p>Use the <code>peaceiris/actions-gh-pages@v3</code> action to deploy the site to GitHub Pages.</p>
</div>
<div class="step">
<h3>5. Push Changes and Verify</h3>
<p>Push your changes and verify that the site deploys successfully to GitHub Pages.</p>
</div>
</section>
</main>
<footer>
<p>Created as a learning project for CI/CD with GitHub Actions</p>
</footer>
<script src="script.js"></script>
</body>
</html>