Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1bd27f31d9 | |||
| 1eb38badc0 | |||
| 91274e2851 | |||
|
|
72847b3dad |
9 changed files with 1166 additions and 587 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -2,8 +2,6 @@ name: ci
|
|||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
30
.github/workflows/deploy.yaml
vendored
30
.github/workflows/deploy.yaml
vendored
|
|
@ -1,30 +0,0 @@
|
|||
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,3 +19,4 @@ pnpm-debug.log*
|
|||
.gitignore
|
||||
|
||||
.claude/
|
||||
.vercel/
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { defineConfig } from "astro/config";
|
||||
import mdx from "@astrojs/mdx";
|
||||
import vercel from "@astrojs/vercel";
|
||||
import rehypeExternalLinks from "rehype-external-links";
|
||||
import rehypeKatex from "rehype-katex";
|
||||
import remarkMath from "remark-math";
|
||||
|
|
@ -37,6 +38,8 @@ const daylight = {
|
|||
};
|
||||
|
||||
export default defineConfig({
|
||||
output: "static",
|
||||
adapter: vercel(),
|
||||
build: {
|
||||
format: "file",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "barrettruth.com",
|
||||
"name": "barrettruth.sh",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
|
|
@ -18,17 +18,18 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^4.3.13",
|
||||
"astro": "^5.16.9",
|
||||
"@astrojs/vercel": "^9.0.4",
|
||||
"astro": "^5.17.3",
|
||||
"rehype-external-links": "^3.0.0",
|
||||
"rehype-katex": "^7.0.1",
|
||||
"remark-math": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.6",
|
||||
"@typescript-eslint/parser": "^8.53.0",
|
||||
"@typescript-eslint/parser": "^8.56.1",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^16.2.7",
|
||||
"prettier": "^3.8.0",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier-plugin-astro": "^0.14.1",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
|
|
|
|||
1691
pnpm-lock.yaml
generated
1691
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
aws s3 sync ./dist/ s3://barrettruth.com --delete
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/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,6 +18,9 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
|||
<div>
|
||||
<h2>experience</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a target="_blank" href="https://imc.com">imc</a>—july 2026
|
||||
</li>
|
||||
<li>
|
||||
<a target="_blank" href="https://ramp.com">ramp</a>—fall 2025
|
||||
</li>
|
||||
|
|
@ -45,9 +48,6 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
|||
|
||||
<div>
|
||||
<h2>ideas</h2>
|
||||
<ul>
|
||||
<li>there are none yet</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue