Skip to content

Commit 53a8a30

Browse files
committed
deploy 2 prod
1 parent d093dfa commit 53a8a30

File tree

4 files changed

+117
-18
lines changed

4 files changed

+117
-18
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: npm
31+
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v5
34+
35+
- name: Install dependencies
36+
run: npm ci
37+
38+
- name: Build
39+
run: npm run build
40+
41+
- name: Add SPA fallback
42+
run: cp dist/index.html dist/404.html
43+
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v3
46+
with:
47+
path: dist
48+
49+
deploy:
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
runs-on: ubuntu-latest
54+
needs: build
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# Khan-Inspired React Template
1+
# gradient
22

3-
A starter website built with React + CSS, designed in a Khan Academy-inspired style (clean educational dashboard, green accent palette, lesson cards, and progress widgets).
4-
5-
## Run locally
6-
7-
```bash
8-
npm install
9-
npm run dev
10-
```
11-
12-
Then open the local URL printed by Vite.
13-
14-
## Build for production
15-
16-
```bash
17-
npm run build
18-
npm run preview
19-
```
3+
machine learning made visual.

index.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,59 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta
7+
name="description"
8+
content="Machine Learning made visual."
9+
/>
10+
<meta
11+
name="keywords"
12+
content="Gradient, learn ai, learn machine learning, machine learning, data science, AI education, open-source education platform"
13+
/>
14+
<meta name="author" content="Gradient" />
15+
<meta name="robots" content="index, follow" />
16+
<meta name="theme-color" content="#f7f3ea" />
17+
<meta name="application-name" content="Gradient" />
18+
<meta name="apple-mobile-web-app-title" content="Gradient" />
19+
20+
<link rel="canonical" href="https://aryan-cs.github.io/gradient/" />
621
<link rel="icon" type="image/svg+xml" href="./assets/icons/logo.svg" />
22+
23+
<meta property="og:site_name" content="Gradient" />
24+
<meta property="og:type" content="website" />
25+
<meta property="og:locale" content="en_US" />
26+
<meta property="og:title" content="Gradient" />
27+
<meta
28+
property="og:description"
29+
content="Machine Learning made visual."
30+
/>
31+
<meta property="og:url" content="https://aryan-cs.github.io/gradient/" />
32+
<meta
33+
property="og:image"
34+
content="https://aryan-cs.github.io/gradient/assets/icons/logo.svg"
35+
/>
36+
37+
<meta name="twitter:card" content="summary" />
38+
<meta name="twitter:title" content="Gradient" />
39+
<meta
40+
name="twitter:description"
41+
content="Machine Learning made visual."
42+
/>
43+
<meta
44+
name="twitter:image"
45+
content="https://aryan-cs.github.io/gradient/assets/icons/logo.svg"
46+
/>
47+
748
<title>Gradient</title>
49+
50+
<script type="application/ld+json">
51+
{
52+
"@context": "https://schema.org",
53+
"@type": "WebSite",
54+
"name": "Gradient",
55+
"url": "https://aryan-cs.github.io/gradient/",
56+
"description": "Machine Learning made visual."
57+
}
58+
</script>
859
</head>
960
<body>
1061
<div id="root"></div>

vite.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig } from "vite";
2+
3+
export default defineConfig({
4+
// Use the repository base path when building on GitHub Actions (GitHub Pages).
5+
base: process.env.GITHUB_ACTIONS ? "/gradient/" : "/",
6+
});

0 commit comments

Comments
 (0)