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
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,27 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps chromium

- name: Build site
run: pnpm build

- name: Generate og-image
run: pnpm generate:og && cp public/og-image.png dist/og-image.png

- name: Generate resume DOCX with pandoc
run: pandoc dist/resume/index.html -f html -t docx -o dist/Jon_Bogaty_Resume.docx

- name: Verify generated resume files
- name: Generate resume PDF via Playwright
run: pnpm exec tsx scripts/generate-resume-pdf-only.ts

- name: Verify generated artifacts
run: |
ls -la dist/Jon_Bogaty_Resume.pdf dist/Jon_Bogaty_Resume.docx
ls -la dist/Jon_Bogaty_Resume.pdf dist/Jon_Bogaty_Resume.docx dist/og-image.png
test -s dist/Jon_Bogaty_Resume.pdf || { echo "PDF is empty"; exit 1; }
test -s dist/Jon_Bogaty_Resume.docx || { echo "DOCX is empty"; exit 1; }
test -s dist/og-image.png || { echo "og-image is empty"; exit 1; }

- name: Configure Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
Expand Down
13 changes: 11 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import react from '@astrojs/react'
import sitemap from '@astrojs/sitemap'
import tailwindcss from '@tailwindcss/vite'
import { defineConfig } from 'astro/config'

const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf-8'))
const buildDate = new Date().toISOString().slice(0, 10)

export default defineConfig({
site: 'https://jbcom.github.io',
site: 'https://www.jonbogaty.com',
output: 'static',
integrations: [react()],
integrations: [react(), sitemap()],
vite: {
plugins: [tailwindcss()],
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
__BUILD_DATE__: JSON.stringify(buildDate),
},
resolve: {
alias: {
'@': resolve(import.meta.dirname, './src'),
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build": "astro build",
"preview": "astro preview",
"generate:resume": "tsx scripts/generate-resume.ts",
"generate:og": "tsx scripts/generate-og-image.ts",
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "playwright test",
Expand All @@ -21,6 +22,10 @@
},
"dependencies": {
"@astrojs/react": "^4.4.2",
"@astrojs/sitemap": "^3.7.2",
"@fontsource/instrument-serif": "^5.2.8",
"@fontsource/inter": "^5.2.8",
"@fontsource/jetbrains-mono": "^5.2.8",
"@paper-design/shaders-react": "^0.0.71",
"astro": "^5.18.0",
"class-variance-authority": "^0.7.1",
Expand All @@ -33,6 +38,7 @@
"tailwind-merge": "^3.5.0"
},
"devDependencies": {
"@astrojs/check": "^0.9.8",
"@biomejs/biome": "^2.4.5",
"@playwright/test": "^1.58.2",
"@tailwindcss/vite": "^4.2.1",
Expand All @@ -47,7 +53,7 @@
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"homepage": "https://jbcom.github.io",
"homepage": "https://www.jonbogaty.com",
"repository": {
"type": "git",
"url": "git+https://github.com/jbcom/jbcom.github.io.git"
Expand Down
Loading
Loading