Skip to content
Open
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
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the main branches
push:
branches: [ main, master, gh-pages ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

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

- name: Install, build, and upload your site
uses: withastro/action@v3
with:
path: . # The root location of your Astro project inside the repository. (optional)
node-version: 20 # The version of Node.js to use (optional)
package-manager: npm # The Node package manager to use (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# build output
dist/
.output/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS
.DS_Store

# IDEs
.idea/
.vscode/
*.swp
*.swo
*~

# Astro
.astro/
Binary file removed DronesWritingSample.pdf
Binary file not shown.
Binary file removed Peter_Hagen_Resume_2016_DS.pdf
Binary file not shown.
74 changes: 44 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,57 @@
# Astro Starter Kit: Minimal
# Peter Hagen - Portfolio Website

```sh
npm create astro@latest -- --template minimal
```
Modern portfolio website built with Astro and TailwindCSS, showcasing data engineering, AI/ML, quantitative methods, and GovCon analytics work.

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Deployment

## 🚀 Project Structure
This site is automatically deployed to GitHub Pages via GitHub Actions when you push to the repository.

Inside of your Astro project, you'll see the following folders and files:
### First-time Setup

```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```
1. **Enable GitHub Pages in repository settings:**
- Go to Settings → Pages
- Under "Source", select "GitHub Actions"

2. **Push your changes:**
```bash
git add .
git commit -m "Deploy new Astro site"
git push origin gh-pages
```

3. **Monitor deployment:**
- Go to the "Actions" tab in your GitHub repository
- You should see the "Deploy to GitHub Pages" workflow running
- Once complete, your site will be live at https://phizou.github.io/

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
### Manual Deployment

There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
If you need to deploy manually:

Any static assets, like images, can be placed in the `public/` directory.
```bash
npm run build
# The dist/ folder contains the built site
```

## 🛠️ Development

```bash
npm install
npm run dev # Start dev server at localhost:4321
npm run build # Build for production
npm run preview # Preview production build locally
```

## 🧞 Commands
## 📁 Project Structure

All commands are run from the root of the project, from a terminal:
- `src/` - Astro source files (pages, components, layouts)
- `src/content/` - Markdown content (projects, notes)
- `public/` - Static assets (images, PDFs, data files)
- `dist/` - Built site (generated, don't commit)

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## 📝 Adding Content

## 👀 Want to learn more?
- **New Project:** Add a `.md` file to `src/content/projects/`
- **New Note:** Add a `.md` file to `src/content/notes/`
- See existing files for frontmatter structure

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import tailwindcss from '@tailwindcss/vite';

// https://astro.build/config
export default defineConfig({
site: 'https://phizou.github.io',
base: '/',
vite: {
plugins: [tailwindcss()]
}
Expand Down
12 changes: 6 additions & 6 deletions node_modules/.vite/deps/_metadata.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions teams_WAS_2015_per_game.csv

This file was deleted.

15 changes: 0 additions & 15 deletions teams_WAS_2015_playoffs_per_game.csv

This file was deleted.