Skip to content

Commit 1f57a05

Browse files
committed
Initial commit with HTML website
0 parents  commit 1f57a05

4 files changed

Lines changed: 69 additions & 0 deletions

File tree

ci-cd.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI/CD Pipeline Demo
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
name: Build Stage
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Simulate Build Step
18+
run: echo "Building the HTML project..."
19+
20+
test:
21+
runs-on: ubuntu-latest
22+
name: Test Stage
23+
needs: build
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
29+
- name: Simulate HTML Validation
30+
run: echo "Running HTML/CSS/JS validation..."
31+
32+
deploy:
33+
runs-on: ubuntu-latest
34+
name: Deploy Stage
35+
needs: test
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v3
40+
41+
- name: Simulate Deployment
42+
run: echo "Deploying the website (simulated for now)..."

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>CI/CD Demo</title>
5+
<link rel="stylesheet" href="style.css">
6+
</head>
7+
<body>
8+
<h1>CI/CD Pipeline Test</h1>
9+
<button onclick="trigger()">Click Me</button>
10+
<script src="script.js"></script>
11+
</body>
12+
</html>

script.js

Whitespace-only changes.

style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
background-color: #fafafa;
4+
text-align: center;
5+
padding: 50px;
6+
}
7+
8+
button {
9+
padding: 10px 20px;
10+
font-size: 16px;
11+
background-color: #0078D7;
12+
color: white;
13+
border: none;
14+
border-radius: 5px;
15+
}

0 commit comments

Comments
 (0)