Skip to content

Commit 414727d

Browse files
committed
Human.
0 parents  commit 414727d

34 files changed

Lines changed: 33658 additions & 0 deletions

.github/workflows/deploy.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
2+
# Sample workflow for building and deploying a Next.js site to GitHub Pages
3+
#
4+
# To get started with Next.js see: https://nextjs.org/docs/getting-started
5+
#
6+
name: Deploy Next.js site to Pages
7+
8+
on:
9+
# Runs on pushes targeting the default branch
10+
push:
11+
branches: ["main"]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24+
concurrency:
25+
group: "pages"
26+
cancel-in-progress: false
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
- name: Detect package manager
36+
id: detect-package-manager
37+
run: |
38+
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
39+
echo "manager=yarn" >> $GITHUB_OUTPUT
40+
echo "command=install" >> $GITHUB_OUTPUT
41+
echo "runner=yarn" >> $GITHUB_OUTPUT
42+
exit 0
43+
elif [ -f "${{ github.workspace }}/package.json" ]; then
44+
echo "manager=npm" >> $GITHUB_OUTPUT
45+
echo "command=ci" >> $GITHUB_OUTPUT
46+
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
47+
exit 0
48+
else
49+
echo "Unable to determine package manager"
50+
exit 1
51+
fi
52+
- name: Setup Node
53+
uses: actions/setup-node@v4
54+
with:
55+
node-version: "20"
56+
cache: ${{ steps.detect-package-manager.outputs.manager }}
57+
- name: Setup Pages
58+
uses: actions/configure-pages@v5
59+
with:
60+
# Automatically inject basePath in your Next.js configuration file and disable
61+
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
62+
#
63+
# You may remove this line if you want to manage the configuration yourself.
64+
static_site_generator: next
65+
- name: Restore cache
66+
uses: actions/cache@v4
67+
with:
68+
path: |
69+
.next/cache
70+
# Generate a new cache whenever packages or source files change.
71+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
72+
# If source files changed but packages didn't, rebuild from a prior cache.
73+
restore-keys: |
74+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
75+
- name: Install dependencies
76+
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
77+
- name: Build with Next.js
78+
run: ${{ steps.detect-package-manager.outputs.runner }} next build
79+
- name: Upload artifact
80+
uses: actions/upload-pages-artifact@v3
81+
with:
82+
path: ./out
83+
84+
# Deployment job
85+
deploy:
86+
environment:
87+
name: github-pages
88+
url: ${{ steps.deployment.outputs.page_url }}
89+
runs-on: ubuntu-latest
90+
needs: build
91+
steps:
92+
- name: Deploy to GitHub Pages
93+
id: deployment
94+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
# Human — Personal Website
3+
4+
Welcome to my personal website, a space dedicated to the spirit of human curiosity and creativity in an age defined by AI.
5+
6+
## Why "Human"?
7+
8+
In a world rapidly transformed by artificial intelligence, it's easy to forget what makes us unique. This site is a reflection of the indomitable human spirit—our ability to imagine, to create, to care. AI may accelerate progress, but it’s human curiosity that decides the direction of where we go.
9+
10+
## About
11+
12+
I'm Chirag Bangera, an engineer working on simulations. This site is a place to share my work, ideas, and explorations. Here, you'll find:
13+
- Interactive simulations and visualizations
14+
- Thoughts on technology, AI, and the future
15+
- Reflections on what it means to be human
16+
-
17+
---
18+
19+
> "Because in an age defined by AI, it’s worth remembering what makes us different."
20+
21+
---
22+
23+
Feel free to reach out or connect!

app/favicon.ico

25.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)