Compare commits
No commits in common. "main" and "fix/ci" have entirely different histories.
18 changed files with 608 additions and 1188 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -2,6 +2,8 @@ name: ci
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
30
.github/workflows/deploy.yaml
vendored
Normal file
30
.github/workflows/deploy.yaml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: deploy
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["ci"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.workflow_run.head_sha }}
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: "pnpm"
|
||||||
|
- run: pnpm install
|
||||||
|
- run: pnpm build
|
||||||
|
- uses: aws-actions/configure-aws-credentials@v2
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-2
|
||||||
|
- run: chmod +x scripts/deploy.sh && scripts/deploy.sh
|
||||||
|
- env:
|
||||||
|
AWS_CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
|
||||||
|
run: chmod +x scripts/invalidate.sh && scripts/invalidate.sh
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -19,4 +19,3 @@ pnpm-debug.log*
|
||||||
.gitignore
|
.gitignore
|
||||||
|
|
||||||
.claude/
|
.claude/
|
||||||
.vercel/
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import { defineConfig } from "astro/config";
|
import { defineConfig } from "astro/config";
|
||||||
import mdx from "@astrojs/mdx";
|
import mdx from "@astrojs/mdx";
|
||||||
import vercel from "@astrojs/vercel";
|
|
||||||
import rehypeExternalLinks from "rehype-external-links";
|
import rehypeExternalLinks from "rehype-external-links";
|
||||||
import rehypeKatex from "rehype-katex";
|
import rehypeKatex from "rehype-katex";
|
||||||
import remarkMath from "remark-math";
|
import remarkMath from "remark-math";
|
||||||
|
|
@ -38,8 +37,6 @@ const daylight = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: "static",
|
|
||||||
adapter: vercel(),
|
|
||||||
build: {
|
build: {
|
||||||
format: "file",
|
format: "file",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "barrettruth.sh",
|
"name": "barrettruth.com",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
@ -18,18 +18,17 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^4.3.13",
|
"@astrojs/mdx": "^4.3.13",
|
||||||
"@astrojs/vercel": "^9.0.4",
|
"astro": "^5.16.9",
|
||||||
"astro": "^5.17.3",
|
|
||||||
"rehype-external-links": "^3.0.0",
|
"rehype-external-links": "^3.0.0",
|
||||||
"rehype-katex": "^7.0.1",
|
"rehype-katex": "^7.0.1",
|
||||||
"remark-math": "^6.0.0"
|
"remark-math": "^6.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/check": "^0.9.6",
|
"@astrojs/check": "^0.9.6",
|
||||||
"@typescript-eslint/parser": "^8.56.1",
|
"@typescript-eslint/parser": "^8.53.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"lint-staged": "^16.2.7",
|
"lint-staged": "^16.2.7",
|
||||||
"prettier": "^3.8.1",
|
"prettier": "^3.8.0",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
1691
pnpm-lock.yaml
generated
1691
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
BIN
public/fonts/apercu-mono/ApercuMonoProBold.ttf
Normal file
BIN
public/fonts/apercu-mono/ApercuMonoProBold.ttf
Normal file
Binary file not shown.
BIN
public/fonts/apercu-mono/ApercuMonoProLight.ttf
Normal file
BIN
public/fonts/apercu-mono/ApercuMonoProLight.ttf
Normal file
Binary file not shown.
BIN
public/fonts/apercu-mono/ApercuMonoProMedium.ttf
Normal file
BIN
public/fonts/apercu-mono/ApercuMonoProMedium.ttf
Normal file
Binary file not shown.
BIN
public/fonts/apercu-mono/ApercuMonoProRegular.ttf
Normal file
BIN
public/fonts/apercu-mono/ApercuMonoProRegular.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -111,35 +111,34 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Berkeley Mono";
|
font-family: "Apercu Mono";
|
||||||
src: url("/fonts/berkeley-mono/BerkeleyMono-Regular.ttf") format("truetype");
|
src: url("/fonts/apercu-mono/ApercuMonoProLight.ttf") format("truetype");
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Apercu Mono";
|
||||||
|
src: url("/fonts/apercu-mono/ApercuMonoProRegular.ttf") format("truetype");
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Berkeley Mono";
|
font-family: "Apercu Mono";
|
||||||
src: url("/fonts/berkeley-mono/BerkeleyMono-Bold.ttf") format("truetype");
|
src: url("/fonts/apercu-mono/ApercuMonoProMedium.ttf") format("truetype");
|
||||||
font-weight: 700;
|
font-weight: 500;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Berkeley Mono";
|
font-family: "Apercu Mono";
|
||||||
src: url("/fonts/berkeley-mono/BerkeleyMono-Italic.ttf") format("truetype");
|
src: url("/fonts/apercu-mono/ApercuMonoProBold.ttf") format("truetype");
|
||||||
font-weight: 400;
|
|
||||||
font-style: italic;
|
|
||||||
font-display: swap;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "Berkeley Mono";
|
|
||||||
src: url("/fonts/berkeley-mono/BerkeleyMono-BoldItalic.ttf")
|
|
||||||
format("truetype");
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: italic;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -148,7 +147,7 @@ code,
|
||||||
pre code,
|
pre code,
|
||||||
.astro-code,
|
.astro-code,
|
||||||
code[class*="language-"] {
|
code[class*="language-"] {
|
||||||
font-family: "Berkeley Mono", monospace !important;
|
font-family: "Apercu Mono", monospace !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
|
|
|
||||||
3
scripts/deploy.sh
Executable file
3
scripts/deploy.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
aws s3 sync ./dist/ s3://barrettruth.com --delete
|
||||||
8
scripts/invalidate.sh
Normal file
8
scripts/invalidate.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$AWS_CLOUDFRONT_DISTRIBUTION_ID" ]; then
|
||||||
|
echo 'No cloudfront distribution id found.'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
aws cloudfront create-invalidation --distribution-id "$AWS_CLOUDFRONT_DISTRIBUTION_ID" --paths "/*"
|
||||||
|
|
@ -18,23 +18,20 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
<div>
|
<div>
|
||||||
<h2>experience</h2>
|
<h2>experience</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
|
||||||
<a target="_blank" href="https://imc.com">imc</a>—july 2026
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a target="_blank" href="https://ramp.com">ramp</a>—fall 2025
|
<a target="_blank" href="https://ramp.com">ramp</a>—fall 2025
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a target="_blank" href="https://drw.com">drw</a>—summer 2025
|
<a target="_blank" href="https://drw.com">drw</a>—summer 2025
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a target="_blank" href="https://trbcap.com">trb capital</a
|
|
||||||
>—summer 2024
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a target="_blank" href="https://usa.visa.com">visa</a>—summer
|
<a target="_blank" href="https://usa.visa.com">visa</a>—summer
|
||||||
2024
|
2024
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a target="_blank" href="https://trbcap.com">trb capital</a
|
||||||
|
>—summer 2024
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a target="_blank" href="https://www.nthventure.com">nth venture</a
|
<a target="_blank" href="https://www.nthventure.com">nth venture</a
|
||||||
>—spring 2023
|
>—spring 2023
|
||||||
|
|
@ -48,6 +45,9 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h2>ideas</h2>
|
<h2>ideas</h2>
|
||||||
|
<ul>
|
||||||
|
<li>there are none yet</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue