Skip to content

Commit f5273e6

Browse files
committed
Rewrite site from CRA to Astro
- Replace React/CRA with Astro for static site generation - Convert all React components to Astro components - Add Contributions section with project links - Update Skills section with AI/agents experience - Add GitHub Actions workflow for Pages deployment - Replace FontAwesome npm packages with CDN - Update .gitignore and README for Astro
1 parent bdf6389 commit f5273e6

38 files changed

Lines changed: 5066 additions & 33862 deletions

.github/workflows/deploy.yml

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

.gitignore

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
31
# dependencies
42
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
103

11-
# production
12-
/build
4+
# astro
5+
dist/
6+
.astro/
137

148
# misc
159
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
10+
.env
11+
.env.*
2112
npm-debug.log*
22-
yarn-debug.log*
23-
yarn-error.log*
13+
build/

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
This website was built with create-react-app and deployed via gh-pages
1+
# audreee.github.io
2+
3+
My personal website, built with [Astro](https://astro.build).
4+
5+
## Development
6+
7+
```bash
8+
npm install
9+
npm run dev # start dev server at localhost:4321
10+
```
11+
12+
## Build & Preview
13+
14+
```bash
15+
npm run build # generates static site to dist/
16+
npm run preview # preview the production build locally
17+
```
18+
19+
## Deployment
20+
21+
Deployed to GitHub Pages via GitHub Actions.

astro.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from 'astro/config';
2+
3+
export default defineConfig({
4+
site: 'https://audreee.github.io',
5+
});

0 commit comments

Comments
 (0)