Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Deploy static Astro site to GitHub Pages (official artifact + deploy-pages flow).
# One-time repo setup: Settings → Pages → Build and deployment → Source: GitHub Actions.
# Docs: https://docs.astro.build/en/guides/deploy/github/
#
# Deploy from `main` and `using-astro`. If deploy fails with “branch is not allowed to
# deploy to github-pages”, add this repo + both branches under:
# Settings → Environments → github-pages → Deployment branches (Selected branches).

name: Deploy to GitHub Pages

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Upload Pages artifact
if: >-
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
(github.ref == 'refs/heads/main')
uses: actions/upload-pages-artifact@v3
with:
path: dist

deploy:
if: >-
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
(github.ref == 'refs/heads/main')
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
97 changes: 0 additions & 97 deletions .github/workflows/gatsby.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Dependencies
/node_modules

# Production
/build
# Astro
/dist
/public
/.astro

# Caching
# Tooling caches
/.cache

# Environment Variables
Expand All @@ -18,4 +17,4 @@

# Misc
.DS_Store
Thumbs.db
Thumbs.db
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
54 changes: 47 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
# This is a README
# aprilrieger.github.io

## How to get the stack up and running?
Senior-level portfolio site built with [Astro 6.2](https://astro.build/), MDX content collections, and Tailwind CSS. Static output goes to `dist/` for GitHub Pages.

Requires **Node 20+**. This repo uses [`.npmrc`](.npmrc) with `legacy-peer-deps=true` so `@astrojs/tailwind` installs cleanly with Astro 6 until upstream peer ranges catch up.

## Develop

```sh
npm install -g gatsby-cli
git clone git@github.com:aprilrieger/aprilrieger.github.io.git
cd aprilrieger.github.io
npm install
gatsby develop
```
npm run dev
```

## Build

```sh
npm run build
npm run preview
```

## Theme

Colors are semantic tokens in [`tailwind.config.mjs`](tailwind.config.mjs) (`canvas`, `surface`, `border`, `ink`, `accent`). Edit the hex values there to re-skin the site.

## Content

- Content collections: [`src/content.config.ts`](src/content.config.ts) (glob loaders; Astro 6 format)
- Case studies: [`src/content/caseStudies/*.mdx`](src/content/caseStudies)
- Blog: [`src/content/blog/*.mdx`](src/content/blog)
- Site metadata and nav: [`src/site.config.ts`](src/site.config.ts)
- Static assets (images, resume PDF): [`public/`](public)

Replace [`public/april_rieger_resume.pdf`](public/april_rieger_resume.pdf) with your final resume.

## Deploy (GitHub Pages)

This repo is set up for a **user site** at `https://aprilrieger.github.io`. `site` in [`astro.config.mjs`](astro.config.mjs) must stay `https://aprilrieger.github.io` (no `base` path).

### One-time GitHub settings

1. Repo **Settings** → **Pages** → **Build and deployment**.
2. Under **Source**, choose **GitHub Actions** (not “Deploy from a branch”).
3. Push **`main`** or **`using-astro`**; the workflow [`.github/workflows/deploy-pages.yml`](.github/workflows/deploy-pages.yml) will build and publish `dist/`. (While the Astro branch is in flight, **`using-astro` and `main` both deploy** to the same site; after you’re done, remove `using-astro` from the workflow so only `main` deploys—see comments in that file.)

### What the workflow does

- **Push to `main` or `using-astro`:** `npm ci` → `npm run build` → upload `dist/` → deploy with `actions/deploy-pages`.
- **Pull requests** into `main` or `using-astro`: runs **build only** (no deploy).
- **Workflow dispatch:** run manually from **`main`** or **`using-astro`** to deploy that ref.

Publishing uses the same workflow as [Astro’s GitHub guide](https://docs.astro.build/en/guides/deploy/github/). You can still run `npm run deploy` locally with `gh-pages` if needed; Actions is the recommended path.
12 changes: 12 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";

// User site: https://aprilrieger.github.io/ (no path prefix)
export default defineConfig({
site: "https://aprilrieger.github.io",
integrations: [mdx(), tailwind()],
redirects: {
"/about": "/resume",
},
});
Loading
Loading