Skip to content

Latest commit

 

History

History
82 lines (63 loc) · 2.27 KB

README.md

File metadata and controls

82 lines (63 loc) · 2.27 KB

logo

Hey! 👋 This repository contains the source code for my personal website hosted on GitHub Pages.

🤷 What makes this project special?

  1. Tech stack: Next + TypeScript, with content from a private markdown wiki.
  2. Resume generation on website start/build via react-pdf.
  3. GitHub Actions-based automatic deployment.
  4. Monorepo project structure with yarn workspaces.

🚀 Quick start

Website

  1. Install dependencies

    yarn
  2. Create environment variables

    # Copy example env files
    cp workspaces/website/.env.example workspaces/website/.env
    
    # Fill in required values in the .env files
  3. Generate GraphQL typings

    env HYGRAPH_URL=<url> yarn workspace @teimurjan/gql-client codegen
  4. Run locally

    yarn workspace @teimurjan/website dev
  5. Build

    yarn workspace @teimurjan/website build

✈️ Deployment

GitHub Actions is the CI/CD mechanism responsible for deployments through several workflows:

Website Deployment (deploy.yml)

Triggered when:

  • Code changes are pushed to the main branch (excluding functions changes)
  • Manually triggered via workflow_dispatch

The workflow:

  1. Generates OpenGraph images
  2. Generates resume
  3. Builds the Next.js application
  4. Deploys to GitHub Pages

Profile README Deployment (deploy-readme.yml)

Triggered when:

  • The website deployment workflow completes
  • Manually triggered via workflow_dispatch

The workflow:

  1. Generates the GitHub profile README
  2. Copies it to the teimurjan/teimurjan repository
  3. Commits and pushes the changes